/* A Cool Name Maker - Frontend Styles */

/* Reset và Base Styles */
.acnm-container * {
    box-sizing: border-box;
}

.acnm-container {
    margin: 0 auto;
}


/* Generator Box */
.acnm-generator-box {
    background: white;
}


.acnm-generator-body {
    padding: 0px;
}

/* Form Styles */
.acnm-form {
    margin: 0;
}

.acnm-form-group {
    margin-bottom: 5px;
}

.acnm-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.acnm-form-col {
    flex: 1;
}

.acnm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.acnm-form-control {
    line-height: 1.5;
    padding: 8px 15px;
    resize: none;
    display: block;
    font-size: 100%;
    width: 100%;
    margin: 4px 0;
    border: 2.5px solid #f6f6f6;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: -3px;
    transition: border-color 0.3s ease;
}

.acnm-form-control:hover {
    border: 2.5px solid #4353ff;
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
    box-sizing: border-box;
    margin-bottom: -3px;
}

.acnm-form-control:focus {
    outline: none;
    border-color: #054fcb;
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
}

.acnm-form-control::placeholder {
    font-style: italic;
    color: #aaa;
    opacity: 1;
}

/* Button Styles */
.acnm-btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 24px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.acnm-btn-primary {
    color: #fff;
    background: #3c4148;
    border-color: #3c4149;
}

.acnm-btn-primary:hover {
    transform: translateY(-1px);
    color: #fff;
    background: #0000ff;
    border: 1px solid #0000ff;
}

.acnm-btn-block,
.acnm-refresh-special-btn {
    display: block;
    width: 100%;
}

.acnm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Results Area */
.acnm-results {
    min-height: 100px;
}

.acnm-result-item {
    background: none;
    padding: 5px 0px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.acnm-result-label {
    font-weight: 600;
    color: #495057;
    width: 90px;
    min-width: 90px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acnm-result-content {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 5px;
    min-width: 0;
    background: #fafafa;
    border: 1px solid #f3f4f5;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.acnm-result-name {
    flex: 1;
    min-width: 0;
    /* Important for flex truncation */
    font-family: "Segoe UI Symbol", arial, sans-serif;
    font-size: 18px;
    padding: 6px 4px;
    background: transparent;
    border: none;
    cursor: auto;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    overflow: hidden;
}

.acnm-result-content:hover {
    border-color: #cdcdd4;
}

.acnm-copy-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 66px;
    min-width: 66px;
    flex-shrink: 0;
}

.acnm-copy-btn,
.acnm-copied-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: #4b5563;
    transition: all 0.2s;
}

.acnm-copy-btn:hover,
.acnm-copied-btn:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.acnm-copy-btn svg,
.acnm-copied-btn svg {
    width: 1.25rem;
    /* ~20px, closer to h-5/w-5 */
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
}

.acnm-copy-text {
    font-size: 10px;
    font-weight: normal;
    color: #4b5563;
    margin: 0px;
}

.acnm-hidden {
    display: none !important;
}

/* Exception class for Style 97 - allows text to overflow */
.acnm-result-name.acnm-style-97-exception {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    white-space: normal !important;
}

/* Tooltip implementation (simple CSS version) */
.acnm-tooltip {
    position: relative;
}

.acnm-tooltip::before {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.5rem;
    background-color: #1f2937;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    margin-bottom: 5px;
    z-index: 10;
}

.acnm-tooltip:hover::before,
.acnm-tooltip.acnm-tooltip-open::before {
    opacity: 1;
    visibility: visible;
}

/* Arrow for tooltip */
.acnm-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    margin-bottom: -5px;
    /* Adjust based on arrow size */
    z-index: 10;
}

.acnm-tooltip:hover::after,
.acnm-tooltip.acnm-tooltip-open::after {
    opacity: 1;
    visibility: visible;
}

/* Notification */
.acnm-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3c4147;
    color: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    max-width: 350px;
}

.acnm-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.acnm-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    position: relative;
}

.acnm-notification-icon {
    font-size: 20px;
    font-weight: bold;
}

.acnm-notification-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.acnm-notification-text span {
    font-size: 14px;
    opacity: 0.9;
}

.acnm-notification-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acnm-notification-close:hover {
    opacity: 0.7;
}

/* Notification states */
.acnm-notification.success {
    background: #28a745;
}

.acnm-notification.error {
    background: #dc3545;
}



/* Pro Style và IAM Style - Div chung bao quanh tất cả Pro và IAM */
.acnm-special-style {
    background: #ffffff;
    border: none;
    border-radius: 5px;
    /* padding: 10px; */
    margin-bottom: 10px;
}

/* Tùy chỉnh các item bên trong div chung */


/* Tùy chỉnh tên trong Pro Style và IAM Style */