/* ========================================
       MODERN TEACHER LIST STYLES
    ======================================== */
    .teachers-main-container {
        padding: 10px 0;
        background-color: #f8f9fa;
        min-height: 80vh;
    }

    .teachers-header {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        padding: 40px 0;
        text-align: center;
        margin-bottom: 20px;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .teachers-header h1 {
        font-size: 1.8rem;
        color: white;
        margin-bottom: 8px;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .teachers-header p {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .teachers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .teacher-card {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        overflow: hidden;
        transition: all 0.3s ease;
        cursor: pointer;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .teacher-card:hover {
        transform: translateY(-2px);
        border-color: var(--primary-color);
    }

    .teacher-card-body {
        padding: 15px;
        text-align: center;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .teacher-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin: 0 auto 12px;
        overflow: hidden;
        border: 2px solid #e9ecef;
    }

    .teacher-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .teacher-avatar-placeholder {
        width: 100%;
        height: 100%;
        background: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .teacher-name {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .teacher-rank {
        font-size: 0.8rem;
        color: var(--secondary-color);
        font-weight: 500;
        margin-bottom: 6px;
    }

    .teacher-department {
        font-size: 0.8rem;
        color: #6c757d;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .teacher-specialization {
        font-size: 0.75rem;
        color: #6c757d;
        margin-bottom: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }


    .teacher-actions {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: auto;
        flex-wrap: wrap;
    }

    .teacher-action-btn {
        padding: 5px 8px;
        border-radius: 4px;
        border: 1px solid #e9ecef;
        background: white;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.65rem;
        gap: 3px;
        min-width: 55px;
        flex: 1;
        max-width: 80px;
    }

    .teacher-action-btn:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .teacher-action-btn.primary {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .teacher-action-btn.primary:hover {
        background: var(--primary-light);
    }

    .no-teachers {
        text-align: center;
        padding: 40px 20px;
        color: #6c757d;
    }

    .no-teachers i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #dee2e6;
    }

    .no-teachers h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        color: var(--primary-color);
    }

    .no-teachers p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .pagination-section {
        background: white;
        padding: 15px 0;
        border-top: 1px solid #e9ecef;
        margin-top: 20px;
    }

    .pagination .page-link {
        color: var(--primary-color);
        border-color: #e9ecef;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .pagination .page-link:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

    .pagination .page-item.active .page-link {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .teachers-main-container {
            padding: 8px 0;
        }

        .teachers-header {
            padding: 30px 0;
            margin-bottom: 15px;
        }

        .teachers-header h1 {
            font-size: 1.5rem;
        }

        .teachers-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
        }

        .teacher-card-body {
            padding: 12px;
        }

        .teacher-avatar {
            width: 70px;
            height: 70px;
            margin-bottom: 10px;
        }
    }

    @media (max-width: 480px) {
        .teachers-main-container {
            padding: 5px 0;
        }

        .teachers-header {
            padding: 25px 0;
        }

        .teachers-header h1 {
            font-size: 1.3rem;
        }

        .teachers-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .teacher-card-body {
            padding: 10px;
        }

        .teacher-avatar {
            width: 60px;
            height: 60px;
            margin-bottom: 8px;
        }

        .teacher-name {
            font-size: 0.9rem;
        }

        .teacher-rank {
            font-size: 0.75rem;
        }

        .teacher-department {
            font-size: 0.75rem;
        }

        .teacher-specialization {
            font-size: 0.7rem;
        }

        .teacher-actions {
            gap: 4px;
        }

        .teacher-action-btn {
            padding: 4px 6px;
            font-size: 0.6rem;
            min-width: 45px;
            max-width: 70px;
        }
    }
