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

.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 {
    padding: 5px 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.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: auto;
    transition: all 0.2s ease;
}

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

.acnm-copy-btn {
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    vertical-align: middle;
    background: #e3e3e3;
    color: #306179;
    padding: 2px 6px;
    font-size: 70%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 0 0 transparent;
}

.acnm-copy-btn:hover {
    background-color: #D0D0D0;
    transform: translateY(-1px);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {

    .acnm-copy-btn {
        padding: 10px 0px;
        font-size: 100%;
    }
    .acnm-container {
        padding: 15px;
    }
    
    .acnm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .acnm-form-col {
        margin-bottom: 15px;
    }
    
    .acnm-result-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .acnm-result-label {
        min-width: auto;
        text-align: center;
    }
    
    .acnm-generator-body {
        padding: 0px;
    }
}

@media (max-width: 480px) {
    .acnm-container {
        padding: 10px;
    }
    
    .acnm-generator-body {
        padding: 0px;
    }
}

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

/* Tùy chỉnh các item bên trong div chung */
.acnm-special-style .acnm-result-item {
    /* Thêm style cho từng item Pro/IAM tại đây */
    /* Ví dụ: */
    /* margin-bottom: 5px; */
}

/* Tùy chỉnh tên trong Pro Style và IAM Style */
.acnm-special-style .acnm-result-name {
    /* Thêm style cho tên Pro Style và IAM Style tại đây */
    /* Ví dụ: */
    /* font-weight: bold; */
    /* color: #667eea; */
}

