/*
 * =====================================================
 * MAIN.CSS - HỆ THỐNG QUẢN LÝ GIẤY TỜ THPT THỦ ĐỨC
 * =====================================================
 * Màu chủ đạo: XANH NGỌC (#00d1b2)
 * Framework: Bulma CSS
 * =====================================================
 */

/* ===================================
   1. GLOBAL STYLES
   =================================== */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1; /* Phần nội dung chính sẽ giãn nở để đẩy footer xuống */
}

/* ===================================
   2. REGISTER.PHP - MULTI-STEP FORM
   =================================== */

/* Field Container */
.field-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.field-container .field {
    flex: 1 1 30%;
    min-width: 150px;
}

/* Trường Loại giấy tờ rộng hơn */
#loaigiay-field {
    flex: 2 1 60% !important;
}

/* Style cho các trường mở rộng */
.additional-fields-group {
    border-top: 1px dashed #ccc;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

/* === STEPPER BAR === */
.steps-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step-item {
    flex-grow: 1;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #dbdbdb;
    transform: translateX(25px);
    z-index: 1;
}

.step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #dbdbdb;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    position: relative;
    transition: background-color 0.3s;
    border: 2px solid #dbdbdb;
}

.step-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #7a7a7a;
    white-space: nowrap;
    font-weight: 500;
}

.step-item.is-active .step-icon {
    background-color: #00d1b2; /* XANH NGỌC - Màu chủ đạo */
    border-color: #00d1b2;
}

.step-item.is-active .step-label,
.step-item.is-completed .step-label {
    color: #363636;
}

.step-item.is-completed .step-icon {
    background-color: #3273dc; /* Blue */
    border-color: #3273dc;
}

.step-item.is-completed:not(:last-child)::after {
    background-color: #3273dc;
}

/* Stepper Icon with FontAwesome */
.step-icon i {
    font-size: 14px;
}

.step-item.is-active .step-icon i,
.step-item.is-completed .step-icon i {
    color: white;
}

/* Stepper - Mobile */
.step-label .desktop-text {
    display: inline;
}

.step-label .mobile-text {
    display: none;
}

@media (max-width: 768px) {
    .steps-bar {
        margin-bottom: 2rem;
    }
    
    .step-label .desktop-text {
        display: none;
    }
    
    .step-label .mobile-text {
        display: inline;
        font-weight: bold;
    }
    
    .step-label {
        font-size: 0.75rem;
        width: 100%;
    }
    
    .step-icon {
        width: 36px;
        height: 36px;
    }
}

/* === REGISTER.PHP IMPROVEMENTS === */

/* Form Box */
.register-form-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

/* Step Header */
.step-header-modern {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f5;
}

.step-header-modern .title {
    margin-top: 0.5rem;
}

/* Field improvements */
.field-container .field .label {
    font-weight: 600;
    color: #363636;
    margin-bottom: 0.5rem;
}

.field-container .field .label.required::after {
    content: " *";
    color: #f14668;
}

.field-container .field .help {
    font-size: 0.75rem;
    color: #7a7a7a;
    margin-top: 0.25rem;
}

.field-container .field .input,
.field-container .field .select select,
.field-container .field .textarea {
    border-radius: 6px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.field-container .field .input:focus,
.field-container .field .select select:focus,
.field-container .field .textarea:focus {
    border-color: #00d1b2;
    box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

.field-container .field .control.has-icons-left .icon {
    color: #7a7a7a;
}

.field-container .field .input:focus ~ .icon {
    color: #00d1b2;
}

/* Step buttons */
.step-content .buttons {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f5f5f5;
}

.step-content .button {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 1.25rem 2rem;
}

.step-content .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.step-content .button.is-primary {
    background-color: #00d1b2;
    border-color: #00d1b2;
}

.step-content .button.is-primary:hover {
    background-color: #00b89c;
}

/* Character counter */
#char-counter {
    font-size: 0.75rem;
    color: #7a7a7a;
    text-align: right;
    margin-top: 0.25rem;
}

#char-counter.is-danger {
    color: #f14668;
    font-weight: 600;
}

/* === REGISTER ACTION BUTTONS === */
.register-action-buttons {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    gap: 0.75rem;
}

.btn-register-action {
    min-width: 140px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-register-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-register-action.is-primary {
    background: linear-gradient(135deg, #00d1b2 0%, #00b89c 100%);
    border: none;
    color: white;
}

.btn-register-action.is-primary:hover {
    background: linear-gradient(135deg, #00b89c 0%, #009e86 100%);
}

.btn-register-action.is-success {
    background: linear-gradient(135deg, #48c774 0%, #3abb67 100%);
    border: none;
    color: white;
}

.btn-register-action.is-success:hover {
    background: linear-gradient(135deg, #3abb67 0%, #2fa856 100%);
}

.btn-next {
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 209, 178, 0.3);
    }
    50% {
        box-shadow: 0 2px 16px rgba(0, 209, 178, 0.5);
    }
}

.btn-submit {
    animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(72, 199, 116, 0.3);
    }
    50% {
        box-shadow: 0 2px 16px rgba(72, 199, 116, 0.5);
    }
}

/* Mobile responsive for register form */
@media (max-width: 768px) {
    .register-form-box {
        padding: 1.5rem 1rem;
    }
    
    .step-header-modern {
        margin-bottom: 1.5rem;
    }
    
    .step-header-modern .title {
        font-size: 1.25rem !important;
    }
    
    .step-content .button {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .register-action-buttons {
        flex-wrap: wrap;
    }
    
    .btn-register-action {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: auto;
        font-size: 0.9rem;
    }
    
    /* Nút "Gửi đăng ký" full width trên mobile */
    .btn-submit {
        flex: 1 1 100%;
    }
}

/* ===================================
   3. STATUS.PHP - TRA CỨU TÌNH TRẠNG
   =================================== */

/* Mobile Search Bar */
@media screen and (max-width: 600px) {
    .field.is-grouped.has-addons {
        flex-wrap: wrap;
        justify-content: center !important;
    }
    
    .field.is-grouped.has-addons .control:not(.is-expanded) {
        flex: 1 1 auto;
        margin-bottom: 5px;
        margin-left: 2px;
        margin-right: 2px;
    }
    
    .field.is-grouped.has-addons .control.is-expanded {
        flex-basis: 100%;
        order: -1;
        margin-bottom: 10px;
    }

    .btn-new-request-mobile-large {
        width: 100%;
        font-size: 1.25rem !important;
        height: 3.15em !important;
    }
    
    .btn-new-request-mobile-large .icon {
        font-size: 1.25rem !important;
    }
}

@media screen and (min-width: 601px) {
    .btn-new-request-mobile-large {
        font-size: 1rem !important;
        height: 2.5em !important;
    }
    
    .btn-new-request-mobile-large .icon {
        font-size: 1rem !important;
    }
}

/* Result Box Styles */
.result-box {
    border-top: 5px solid transparent;
    transition: border-color 0.3s;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(50,50,93,.05), 0 1px 3px rgba(0,0,0,.05);
}

.result-box.is-warning { border-color: #ffdd57; }
.result-box.is-info { border-color: #3e8ed0; }
.result-box.is-success { border-color: #48c774; }
.result-box.is-danger { border-color: #f14668; }

/* Detail Items */
.detail-item {
    padding: 5px 0;
}

.detail-label {
    font-weight: 600;
    color: #4a4a4a;
    margin-right: 10px;
}

/* Reason Box */
.reason-box {
    margin-top: 15px;
    padding: 12px;
    border-left: 5px solid #ff3860;
    background-color: #ffe5e5;
    border-radius: 4px;
    font-style: italic;
    line-height: 1.4;
}

.reason-box.is-info {
    border-left: 5px solid #209cee;
    background-color: #e3f2fd;
}

/* === MODERN STATUS.PHP IMPROVEMENTS === */

/* Search Box Modern */
.search-box-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-box-modern:hover {
    box-shadow: 0 12px 24px rgba(0, 209, 178, 0.12);
    border-color: #00d1b2;
}

.search-input-modern {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.search-input-modern:focus {
    border-color: #00d1b2;
    box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

.btn-search-modern {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 209, 178, 0.3);
}

.help-text-modern {
    padding: 0.5rem;
    text-align: center;
}

/* Result Header Modern */
.result-header-modern {
    border-radius: 8px;
    border-left: 5px solid #00d1b2;
}

/* Result Card Modern */
.result-card-modern {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.result-card-modern:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Card Header Colors */
.card-header-status-warning {
    background: linear-gradient(135deg, #ffdd57 0%, #ffd83d 100%);
    color: #363636 !important;
}

.card-header-status-info {
    background: linear-gradient(135deg, #3e8ed0 0%, #2b7fc4 100%);
}

.card-header-status-success {
    background: linear-gradient(135deg, #48c774 0%, #3abb67 100%);
}

.card-header-status-danger {
    background: linear-gradient(135deg, #f14668 0%, #ef395d 100%);
}

.card-header-status-warning .card-header-title,
.card-header-status-info .card-header-title,
.card-header-status-success .card-header-title,
.card-header-status-danger .card-header-title {
    color: white;
}

/* Info Grid Modern */
.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    padding: 1rem 0;
}

.info-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item-modern:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.info-item-modern.info-highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #48c774;
}

.info-icon-modern {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-content-modern {
    flex: 1;
}

.info-label-modern {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #7a7a7a;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.info-value-modern {
    font-size: 1rem;
    font-weight: 500;
    color: #363636;
    word-break: break-word;
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-state-icon {
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* CTA Section */
.cta-section-modern {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-radius: 12px;
    border: 2px dashed #00d1b2;
}

.button-cta-modern {
    font-size: 1.1rem;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 6px 16px rgba(72, 199, 116, 0.3);
    transition: all 0.3s ease;
}

.button-cta-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(72, 199, 116, 0.4);
}

/* === RESPONSIVE - STATUS.PHP === */
@media screen and (max-width: 768px) {
    .search-box-modern {
        padding: 1rem;
    }
    
    .field.is-grouped.has-addons {
        flex-wrap: wrap;
    }
    
    .btn-search-text,
    .btn-back-text {
        display: none;
    }
    
    .btn-back-control {
        margin-left: 0.5rem;
    }
    
    .info-grid-modern {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .info-item-modern {
        padding: 0.75rem;
    }
    
    .result-header-modern .level {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .result-header-modern .level-right {
        margin-top: 0.5rem;
    }
    
    .cta-section-modern {
        padding: 1.5rem 1rem;
    }
    
    .button-cta-modern {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
    }
}

/* ===================================
   4. INDEX.PHP - TRANG CHỦ
   =================================== */

/* Background màu nhẹ nhàng */
html {
    background-color: #f7f7f7;
}

/* === MÀU SẮC CHỦ ĐẠO === */
/* Hero section với gradient XANH NGỌC - Màu chủ đạo của website */
.hero.is-primary {
    background-color: #00d1b2;
    background-image: linear-gradient(141deg, #00d1b2 0%, #00b89c 71%, #009e86 100%);
    color: white;
}

.has-text-primary-brand {
    color: #00d1b2 !important;
}

/* Hero Header Improvements */
.hero-header-columns {
    max-width: 600px;
    margin: 0 auto;
}

.hero-logo {
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-title {
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    opacity: 0.95;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(to bottom, #f7f7f7 0%, #ffffff 100%);
    padding: 2rem 1.5rem 1rem;
}

/* Service Cards */
.service-card {
    height: 100%;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    border-color: #00d1b2;
    box-shadow: 0 8px 24px rgba(0, 209, 178, 0.15);
}

.service-icon-wrapper {
    display: inline-block;
    padding: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.service-card .card-content {
    padding: 2rem 1.5rem;
}

.service-card .title {
    color: #363636;
    font-weight: 600;
}

.service-card .button {
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card .button:hover {
    transform: translateY(-2px);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    border-left: 5px solid #00d1b2;
    border-radius: 8px;
}

.info-box .content ul {
    margin-left: 0;
    list-style: none;
}

.info-box .content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-box .content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d1b2;
    font-weight: bold;
}

/* Modern Footer */
.modern-footer {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #00d1b2 0%, #00b89c 100%);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 209, 178, 0.3);
}

/* === MOBILE OPTIMIZATION === */
@media screen and (max-width: 768px) {
    .hero-header-columns .column {
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.25rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
    }
    
    .welcome-banner .title {
        font-size: 1.5rem !important;
    }
    
    .welcome-banner .subtitle .tag {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card .card-content {
        padding: 1.5rem 1rem;
    }
    
    .service-icon-wrapper {
        padding: 1rem;
    }
    
    .service-icon-wrapper .icon i {
        font-size: 2rem !important;
    }
    
    .info-box {
        margin-top: 2rem !important;
    }
    
    .info-box .columns {
        flex-direction: column;
    }
    
    .info-box .column.is-narrow {
        margin-bottom: 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media screen and (min-width: 769px) {
    .service-card {
        min-height: 450px;
        display: flex;
        flex-direction: column;
    }
    
    .service-card .card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .service-card .card-content p {
        flex: 1;
    }
}

/* ===================================
   5. ADMIN/LOGIN.PHP - TRANG ĐĂNG NHẬP ADMIN
   =================================== */

/* Login Section */
.login-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Login Box */
.login-box {
    background: white;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.login-box:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Login Icon */
.login-icon-wrapper {
    display: inline-block;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 209, 178, 0.2);
}

.login-icon-wrapper .icon {
    color: #00d1b2;
}

/* Title and Subtitle Spacing */
.login-box .title {
    margin-bottom: 0.75rem !important;
    line-height: 1.3;
}

.login-box .subtitle {
    margin-top: 0 !important;
    line-height: 1.4;
}

/* Form Fields */
.login-box .field .label {
    font-weight: 600;
    color: #363636;
    margin-bottom: 0.5rem;
}

.login-box .input {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-box .input:focus {
    border-color: #00d1b2;
    box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

.login-box .control.has-icons-left .icon {
    color: #7a7a7a;
}

.login-box .input:focus ~ .icon {
    color: #00d1b2;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #00d1b2 0%, #00b89c 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 209, 178, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #00b89c 0%, #009e86 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 209, 178, 0.4);
}

/* Security Note */
.login-box .notification.is-info {
    background-color: #f0f7ff;
    border: 1px solid #d6e9ff;
}

/* Error Notification */
.login-box .notification.is-danger {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .login-icon-wrapper {
        padding: 1rem;
    }
    
    .login-icon-wrapper .icon i {
        font-size: 2rem !important;
    }
    
    .login-box .title {
        font-size: 1.25rem !important;
    }
}

/* ===================================
   6. ADMIN/INDEX-FULL.PHP - BẢNG QUẢN LÝ YÊU CẦU
   =================================== */

/* CSS cho chế độ thu gọn bảng */
.requestsTable.is-collapsed .col-optional {
    display: none;
}

/* Định dạng tiêu đề cột */
#requestsTable th {
    font-size: 0.85em !important;
    vertical-align: middle;
}

/* Nút icon nhỏ gọn (Cập nhật/Xóa) */
.button.is-small-icon {
    padding: 0 0.5em !important;
    height: 2.2em !important;
    width: 2.2em !important;
    flex-shrink: 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Thu gọn text trong ô Lý do */
.cell-lydo {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ẩn cột Mục đích */
.col-mucdich {
    display: none !important;
}

/* Ẩn 4 cột mới trong bảng chính */
.col-new-optional {
    display: none !important;
}

/* Font chữ nhỏ hơn */
.cell-small-font {
    font-size: 0.85em;
}

/* Căn giữa */
.cell-centered {
    text-align: center;
}

/* Nhóm hành động nằm ngang */
.action-group-horizontal {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    align-items: stretch;
    flex-wrap: nowrap;
}

/* Giảm padding cho các ô dữ liệu */
#requestsTable td {
    padding: 0.4em 0.5em !important;
    vertical-align: middle;
}

/* Input ngày trả */
.input-ngaytra {
    height: 2.2em !important;
    width: 120px !important;
    display: block;
    margin: 0 auto;
}

/* Select cho cập nhật trạng thái */
.select.is-small select {
    height: 2.2em !important;
    min-width: 75px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 2.2em;
    width: auto;
}

.select.is-small {
    flex-grow: 0 !important;
}

/* Tag trạng thái căn giữa */
.status-tag-cell {
    display: flex;
    padding: 0 !important;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.status-tag-cell .tag {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Định dạng cột Ngày đăng */
.cell-ngaygio {
    text-align: center;
    line-height: 1.2;
}

/* Định dạng cột Họ tên / Lớp */
.cell-hoten-lop {
    text-align: left;
    line-height: 1.2;
}

.cell-hoten-lop .is-class {
    font-weight: normal;
    font-size: 0.85em;
    color: #666;
}

.cell-hoten-lop .is-name {
    font-weight: normal;
}
/* TODO: Di chuyển CSS từ admin/index-full.php */

/* ===================================
   7. ADMIN DASHBOARD (admin/index.php)
   =================================== */

/* Statistics Cards */
.stat-card {
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Active filter card */
.stat-card.is-active {
    border: 3px solid currentColor;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.stat-card.has-background-primary-light.is-active {
    border-color: #00d1b2;
}

.stat-card.has-background-warning-light.is-active {
    border-color: #ffdd57;
}

.stat-card.has-background-info-light.is-active {
    border-color: #3298dc;
}

.stat-card.has-background-success-light.is-active {
    border-color: #48c774;
}

.stat-card.has-background-danger-light.is-active {
    border-color: #f14668;
}

.stat-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex-grow: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #7a7a7a;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Responsive Stats Cards */
@media screen and (max-width: 768px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card-content {
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon .icon i {
        font-size: 1.5rem !important;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Admin Action Buttons */
.btn-action {
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-action.is-success {
    background: linear-gradient(135deg, #48c774 0%, #3bb562 100%);
    color: white;
}

.btn-action.is-success:hover {
    background: linear-gradient(135deg, #3bb562 0%, #2fa04e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 199, 116, 0.4);
}

.btn-action.is-info {
    background: linear-gradient(135deg, #3298dc 0%, #2383c4 100%);
    color: white;
}

.btn-action.is-info:hover {
    background: linear-gradient(135deg, #2383c4 0%, #1d6fa3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 152, 220, 0.4);
}

.btn-action.is-danger {
    background: linear-gradient(135deg, #f14668 0%, #e6274f 100%);
    color: white;
}

.btn-action.is-danger:hover {
    background: linear-gradient(135deg, #e6274f 0%, #d31c3f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 70, 104, 0.4);
}

/* Responsive Admin Buttons */
@media screen and (max-width: 768px) {
    .btn-action {
        font-size: 0.875rem;
    }
    
    .btn-action .icon {
        margin-right: 0.25rem;
    }
}
