/* Logo Styles */
.logo-img {
    height: 60px;
}

/* Responsive Header Styles */
@media (max-width: 767px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .header-logo-section {
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-text-section {
        flex: 1;
        min-width: 0;
    }
    
    .header-title {
        font-size: 0.9rem !important;
        line-height: 1.2;
    }
    
    .header-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.2;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn-responsive {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .user-name {
        font-size: 0.875rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .login-section {
        justify-content: flex-end;
    }
}

/* Tablet và desktop - hiển thị đầy đủ header text */
@media (min-width: 576px) {
    .header-text-section {
        display: block !important;
    }
    
    .header-title {
        font-size: 1.1rem !important;
        line-height: 1.3;
    }
    
    .header-subtitle {
        font-size: 1rem !important;
        line-height: 1.3;
    }
    
    .header-container {
        flex-direction: row;
        align-items: center !important;
        gap: 20px;
    }
    
    .header-logo-section {
        flex: 1;
        justify-content: flex-start;
    }
    
    .header-actions {
        flex-shrink: 0;
        justify-content: flex-end;
    }
}

@media (max-width: 575px) {
    .header-title {
        font-size: 0.8rem !important;
    }
    
    .header-subtitle {
        font-size: 0.7rem !important;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .btn-responsive {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
    }
    
    .user-name {
        max-width: 100px;
    }
}

/* User Profile Styles */
.user-profile {
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #333;
}

.text-danger {
    color: #dc3545 !important;
}

.card-header.bg-warning {
    background-color: rgb(255, 245, 214) !important;
    border-bottom: 2px solid #ffc107;
}

.card-header.bg-info {
    background-color: rgb(212, 237, 255) !important;
    border-bottom: 2px solid #0dcaf0;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

@media (max-width: 768px) {
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .btn {
        width: 100%;
    }
}

/* Style cho footer rộng full màn hình */
.footer {
    background-color: #8B2E2E;
    color: white;
    padding: 20px 0;
    margin-top: auto;
}

.footer-bottom {
    background-color: #8B2E2E;
}

.footer-left,
.footer-right {
    text-align: left;
}

.footer-text {
    color: white;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.footer-text:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-left,
    .footer-right {
        text-align: center;
        margin-bottom: 15px;
    }

    .footer-text {
        font-size: 13px;
    }
}

/* CSS cho file upload */
.d-none {
    display: none !important;
}

.file-name-display {
    font-size: 11px;
    color: #198754;
    font-weight: bold;
    word-break: break-word;
    max-width: 150px;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
    padding: 2px 4px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.gap-1 {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
}

/* CSS tùy chỉnh cho modal thông báo */
.modal-notification .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-notification .modal-body {
    padding-top: 0;
    text-align: center;
}

.modal-notification .modal-footer {
    border-top: none;
    justify-content: center;
}

.notification-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.notification-icon.success {
    color: #28a745;
}

.notification-icon.error {
    color: #dc3545;
}

.notification-icon.info {
    color: #17a2b8;
}

.notification-icon.warning {
    color: #ffc107;
}

/* CSS cho dropdown hover */
.user-profile .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.user-profile:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.user-profile .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 160px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .175);
}

/* Custom Styles cho header */
.header-container {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-actions {
    justify-content: flex-end !important;
    text-align: right;
    padding-right: 30px;
}

.logo-img {
    max-height: 50px;
    width: auto;
}

.btn-responsive {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

@media (max-width: 576px) {
    .btn-responsive {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .header-title {
        font-size: 10px !important;
    }
    
    .header-subtitle {
        font-size: 9px !important;
    }
}

@media (max-width: 768px) {
    .header-text-section {
        flex-direction: row !important;
    }
}

.dropdown-toggle::after{
    content: none;
}

@media (max-width: 767px) {
    .header-container {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 15px;
    }
}

@media (min-width: 576px) {
    .header-title {
        font-size: 12px !important;
        line-height: 1.3;
    }
    .header-subtitle {
        font-size: 11px !important;
        line-height: 1.3;
    }
}
