/* Toast Notification Styles */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast-notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.4s ease, fadeOut 0.3s ease 3.7s forwards;
    border-left: 5px solid;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast-notification::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: currentColor;
    animation: progress 4s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast-notification.toast-success {
    border-left-color: #198754;
}

.toast-notification.toast-success::before {
    background: #198754;
}

.toast-notification.toast-danger {
    border-left-color: #dc3545;
}

.toast-notification.toast-danger::before {
    background: #dc3545;
}

.toast-notification.toast-warning {
    border-left-color: #ffc107;
}

.toast-notification.toast-warning::before {
    background: #ffc107;
}

.toast-notification.toast-info {
    border-left-color: #0dcaf0;
}

.toast-notification.toast-info::before {
    background: #0dcaf0;
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: white;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #198754, #157347);
}

.toast-danger .toast-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.toast-info .toast-icon {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
}

.toast-content {
    flex: 1;
    padding-right: 1.5rem;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #212529;
}

.toast-message {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

.toast-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.25rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.toast-close:hover {
    background: #f8f9fa;
    color: #212529;
    transform: rotate(90deg);
}

@media (max-width: 576px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Universal Page Header for Admin Pages */
.page-header.admin-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #fff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.page-header.admin-header h1,
.page-header.admin-header h2 {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.page-header.admin-header .page-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.page-header.admin-header .page-subtitle,
.page-header.admin-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.page-header.admin-header .btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: all 0.3s ease;
}

.page-header.admin-header .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.page-header.admin-header i {
    color: rgba(255, 255, 255, 0.9);
}

/* Universal Checkbox Styles for Admin Pages */
.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0;
    cursor: pointer;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

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

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

.form-check-label {
    cursor: pointer;
    margin-bottom: 0;
}