/* A Cool Name Maker - Frontend Styles */

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

.acnm-container {
    margin: 0 auto; 
    /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 0px;
 max-width: 1200px;
     */
}

/* Header */
.acnm-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #3c4147;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.acnm-title {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.acnm-description {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

/* Generator Box */
.acnm-generator-box {
    background: white;
    /* border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden; */
}


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

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

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

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

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

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

.acnm-form-control {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.acnm-form-control:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.acnm-help-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/* 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);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.acnm-btn-block {
    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 {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.acnm-result-label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
}

.acnm-result-name {
    flex: 1;
    font-family: "Segoe UI Symbol", arial, sans-serif;
    font-size: 18px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acnm-result-name:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.acnm-copy-btn {
    padding: 8px 16px;
    font-size: 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.acnm-copy-btn:hover {
    background: #0056b3;
}

/* Character Categories */
.acnm-categories {
    margin-top: 30px;
}

.acnm-categories h2 {
    padding: 12px 15px;
    margin: 20px 0 15px 0;
    font-weight: bold;
    background: #3c4147;
    color: white;
    border-radius: 6px;
    font-size: 1.2em;
}

.acnm-character-grid {
    margin-bottom: 25px;
    /* padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); */
}

.acnm-character-grid p {
    margin-bottom: 15px;
    color: #6c757d;
    font-style: italic;
}

.acnm-character {
    font-family: "Segoe UI Symbol", arial, sans-serif;
    display: inline-block;
    border: 1px solid #d3d3d3;
    text-align: center;
    margin: 3px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 4px;
    background: white;
    user-select: none;
}

.acnm-character:hover {
    background-color: #f0f0f0;
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Footer Info */
.acnm-footer-info {
    margin-top: 5px;
}

.acnm-footer-info p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #495057;
}

.acnm-footer-info p:last-child {
    margin-bottom: 0;
}

/* 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;
}

/* Loading Animation */
.acnm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: acnm-spin 1s linear infinite;
}

@keyframes acnm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .acnm-container {
        padding: 15px;
    }
    
    .acnm-title {
        font-size: 1.8em;
    }
    
    .acnm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .acnm-form-col {
        margin-bottom: 15px;
    }
    
    .acnm-character {
        font-size: 18px;
        margin: 2px;
        padding: 6px 10px;
    }
    
    .acnm-result-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .acnm-result-label {
        min-width: auto;
        text-align: center;
    }
    
    .acnm-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .acnm-generator-body {
        padding: 0px;
    }
}

@media (max-width: 480px) {
    .acnm-container {
        padding: 10px;
    }
    
    .acnm-title {
        font-size: 1.5em;
    }
    
    .acnm-character {
        font-size: 16px;
        padding: 5px 8px;
    }
    
    .acnm-generator-body {
        padding: 0px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .acnm-container {
        background-color: #1a1a1a;
        color: #e9ecef;
    }
    
    .acnm-generator-box,
    .acnm-character-grid,
    .acnm-footer-info {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .acnm-form-control {
        background-color: #2d2d2d;
        border-color: #404040;
        color: #e9ecef;
    }
    
    .acnm-character {
        background: #2d2d2d;
        border-color: #404040;
        color: #e9ecef;
    }
    
    .acnm-character:hover {
        background-color: #404040;
    }
    
    .acnm-result-name {
        background: #2d2d2d;
        border-color: #404040;
        color: #e9ecef;
    }
    
    .acnm-result-name:hover {
        background: #404040;
    }
}
