/* Abacus Sheet Generator CSS
   Primary: #00275D (Navy)
   Accent: #E29E21 (Amber)
   BG: #F8F9FA
*/

.aba-container {
    max-width: 1200px;
    margin: 0;
    padding: 20px;
}

.aba-header-title {
    color: #00275D;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 3px solid #E29E21;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.aba-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 39, 93, 0.05);
    transition: transform 0.2s ease;
}

/* Config Grid */
.aba-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.aba-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.aba-input-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aba-input-group select, .aba-input-group input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #495057;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
}

.aba-input-group select:focus, .aba-input-group input[type="number"]:focus {
    border-color: #00275D;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,39,93,0.15);
}

.aba-slider-val {
    color: #E29E21;
    font-weight: 700;
}

.aba-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
    margin-top: 5px;
}

.aba-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #00275D;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.15s ease;
}

.aba-slider::-webkit-slider-thumb:hover {
    background: #E29E21;
}

/* Radio Cards */
.aba-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 5px;
}

.aba-radio-card {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aba-radio-card input[type="radio"] {
    display: none;
}

.aba-radio-card:hover {
    border-color: #00275D;
    background: rgba(0, 39, 93, 0.02);
}

.aba-radio-card.active {
    border-color: #00275D;
    background: rgba(0, 39, 93, 0.05);
    color: #00275D;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px #00275D;
}

/* Button primary */
.aba-btn-primary {
    background: #00275D;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 28px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

.aba-btn-primary:hover {
    background: #0b3775;
    box-shadow: 0 4px 15px rgba(0, 39, 93, 0.2);
}

/* Form switch */
.aba-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.aba-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    accent-color: #00275D;
}

/* Lead Modal styling */
.aba-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1070;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.aba-modal-dialog {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.aba-modal-header {
    padding: 15px 20px;
    background: #00275D;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aba-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.aba-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.8;
}

.aba-modal-close:hover {
    opacity: 1;
}

.aba-modal-body {
    padding: 20px;
}

.aba-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.aba-form-group label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #495057;
    margin-bottom: 5px;
}

.aba-form-group input, .aba-form-group select {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.92rem;
}

.aba-form-group input:focus, .aba-form-group select:focus {
    border-color: #00275D;
    outline: none;
}

.aba-modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.aba-btn-submit {
    background: #E29E21;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.aba-btn-submit:hover {
    background: #cb8916;
}

.aba-btn-cancel {
    background: #e2e3e5;
    color: #383d41;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.aba-btn-cancel:hover {
    background: #d6d8db;
}

/* Admin panel styling */
.aba-admin-section {
    margin-top: 40px;
    border-top: 3px solid #dc3545;
    padding-top: 30px;
}

.aba-table-responsive {
    overflow-x: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.aba-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.aba-table th, .aba-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.aba-table th {
    background: #f8f9fa;
    color: #00275D;
    font-weight: 700;
}

.aba-table tr:hover {
    background: rgba(0,39,93,0.02);
}

.aba-badge {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.aba-badge-student {
    background: #e8f4fd;
    color: #007DBF;
}

.aba-badge-teacher {
    background: #fdf5e8;
    color: #E29E21;
}

.aba-btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.aba-btn-danger:hover {
    background: #bd2130;
}

.aba-btn-export {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.aba-btn-export:hover {
    background: #218838;
}

/* Preset Buttons Styling */
.aba-btn-preset {
    background: #fff;
    color: #00275D;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.88rem;
    line-height: 1;
}

.aba-btn-preset:hover, .aba-btn-preset.active {
    background: #E29E21;
    color: #fff;
    border-color: #E29E21;
}
