/**
 * Custom styles for Tutoring Center Management System
 */

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* RTL specific adjustments */
.dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

/* Dashboard cards */
.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-card .card-title {
    font-size: 1rem;
    font-weight: bold;
}

.dashboard-card .card-text {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Status indicators */
.status-badge {
    padding: 0.35em 0.65em;
    border-radius: 50rem;
    font-size: 0.75em;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-expired {
    background-color: #f8d7da;
    color: #842029;
}

.status-warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* Tables */
.table-container {
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Forms */
.form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.form-label {
    font-weight: 600;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

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

/* Notifications */
.notification-container {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .icon {
    width: 30px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        border: none;
    }
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
    
    body {
        background-color: #fff;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    .table {
        width: 100% !important;
    }
}

/* Charts and reports */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar for mobile */
@media (max-width: 992px) {
    .offcanvas-collapse {
        position: fixed;
        top: 56px;
        bottom: 0;
        right: 100%;
        width: 80%;
        padding-right: 1rem;
        padding-left: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background-color: #343a40;
        transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    }
    
    .offcanvas-collapse.open {
        visibility: visible;
        transform: translateX(100%);
    }
}
