        /* ── OVERVIEW VIEW & FILTER BAR ── */
        .filter-toolbar {
            background: #ffffff;
            border: 1px solid var(--card-border);
            border-radius: var(--radius-md);
            padding: 1rem 1.25rem;
            margin-bottom: 1.5rem;
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--shadow-sm);
        }

        .filter-controls {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            align-items: center;
            flex: 1;
        }

        .search-box {
            position: relative;
            min-width: 240px;
            flex: 1;
            max-width: 360px;
        }

        .search-box i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
        }

        .search-box input {
            padding-left: 36px;
            min-height: 42px;
            font-size: 0.9rem;
        }

        .filter-select {
            min-width: 170px;
            min-height: 42px;
            font-size: 0.9rem;
        }

        /* Company Capacity Cards (Overview - Compact & Expandable) */
        .companies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
            gap: 0.75rem;
            align-items: start;
        }

        .company-card {
            background: #ffffff;
            border: 1px solid var(--card-border);
            border-radius: var(--radius-sm);
            padding: 0.7rem 0.95rem;
            transition: all 0.18s ease;
            position: relative;
            display: flex;
            flex-direction: column;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            user-select: none;
        }

        .company-card:hover {
            border-color: var(--accent-color);
            background: #fcfdfd;
            box-shadow: var(--shadow-md);
        }

        .company-card.expanded {
            border-color: var(--accent-color);
            box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
        }

        .company-card-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.65rem;
        }

        .company-name {
            font-size: 0.98rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .company-card.expanded .company-name {
            white-space: normal;
        }

        .company-city {
            font-size: 0.78rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 3px;
        }

        .company-card-actions {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            flex-shrink: 0;
        }

        .company-expand-icon {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: #f1f5f9;
            color: var(--text-secondary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
        }

        .company-card:hover .company-expand-icon {
            background: rgba(5, 150, 105, 0.1);
            color: var(--accent-color);
        }

        .company-card.expanded .company-expand-icon {
            transform: rotate(180deg);
            background: var(--accent-color);
            color: #ffffff;
        }

        .spots-badge {
            background: rgba(5, 150, 105, 0.1);
            color: #047857;
            border: 1px solid rgba(5, 150, 105, 0.3);
            padding: 4px 10px;
            border-radius: var(--radius-full);
            font-size: 0.78rem;
            font-weight: 800;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .company-card-details {
            display: none;
            margin-top: 0.7rem;
            padding-top: 0.7rem;
            border-top: 1px dashed var(--card-border);
            user-select: text;
        }

        .company-card.expanded .company-card-details {
            display: block;
            animation: fadeIn 0.18s ease-out forwards;
        }

        .company-card-meta {
            background: #f8fafc;
            border: 1px solid var(--card-border);
            border-radius: var(--radius-sm);
            padding: 0.55rem 0.7rem;
            margin: 0.55rem 0;
            font-size: 0.78rem;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .meta-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .meta-label {
            color: var(--text-muted);
            font-weight: 500;
        }

        .meta-val {
            color: var(--text-primary);
            font-weight: 600;
            text-align: right;
        }

        .supervisor-contact {
            border-top: 1px solid var(--card-border);
            padding-top: 0.55rem;
            font-size: 0.78rem;
            color: var(--text-secondary);
        }

        .supervisor-contact strong {
            color: var(--text-primary);
        }

        /* ── TEACHER MANAGEMENT VIEW & TABLE ── */
        .teacher-gate-card {
            max-width: 480px;
            margin: 3rem auto;
            text-align: center;
            background: #ffffff;
            border: 1px solid var(--card-border);
            border-radius: var(--radius-lg);
            padding: 2.5rem 2rem;
            box-shadow: var(--shadow-md);
        }

        .teacher-gate-icon {
            width: 64px;
            height: 64px;
            border-radius: var(--radius-md);
            background: rgba(124, 58, 237, 0.1);
            color: var(--purple-accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin: 0 auto 1.25rem;
        }

        .pin-digit {
            width: 52px;
            height: 60px;
            text-align: center;
            font-size: 1.6rem;
            font-weight: 800;
            border-radius: var(--radius-sm);
            background: #ffffff;
            border: 2px solid var(--input-border);
            color: var(--text-primary);
        }

        .pin-digit:focus {
            border-color: var(--purple-accent);
            outline: none;
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
        }

        /* Teacher Admin Panels */
        .admin-section {
            background: #ffffff;
            border: 1px solid var(--card-border);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-sm);
        }

        .admin-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.25rem;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        /* Table styles */
        .table-responsive {
            width: 100%;
            overflow-x: auto;
            border-radius: var(--radius-sm);
            border: 1px solid var(--card-border);
        }

        .styled-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.88rem;
            text-align: left;
        }

        .styled-table th {
            background: #f1f5f9;
            padding: 12px 16px;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 0.04em;
            border-bottom: 1px solid var(--card-border);
            white-space: nowrap;
        }

        .styled-table td {
            padding: 14px 16px;
            border-bottom: 1px solid #f1f5f9;
            color: var(--text-primary);
            vertical-align: middle;
            background: #ffffff;
        }

        .styled-table tr:hover td {
            background: #f8fafc;
        }

        .tag-pill {
            display: inline-block;
            padding: 3px 8px;
            border-radius: var(--radius-full);
            font-size: 0.75rem;
            font-weight: 600;
        }

        /* Modal Dialog */
        dialog {
            background: #ffffff;
            color: var(--text-primary);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-lg);
            padding: 2rem;
            max-width: 640px;
            width: 90vw;
            margin: auto;
            box-shadow: var(--shadow-md);
        }

        dialog::backdrop {
            background: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(4px);
        }

        .dialog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--card-border);
        }

        .dialog-close {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 1.3rem;
            cursor: pointer;
            padding: 4px;
        }

        .dialog-close:hover {
            color: var(--text-primary);
        }

        /* ── TOAST NOTIFICATIONS ── */
        #toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast-msg {
            background: #ffffff;
            border: 1px solid var(--card-border);
            color: var(--text-primary);
            padding: 12px 20px;
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-md);
            font-size: 0.9rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            pointer-events: auto;
            animation: slideInRight 0.25s ease-out;
            min-width: 280px;
        }

        .toast-msg.success { border-left: 4px solid var(--accent-color); }
        .toast-msg.error { border-left: 4px solid var(--error-color); }
        .toast-msg.info { border-left: 4px solid var(--cyan-accent); }

        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* ── FOOTER ── */
        .app-footer {
            border-top: 1px solid var(--card-border);
            background: #ffffff;
            padding: 2rem 1.5rem;
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-align: center;
            margin-top: auto;
        }

        /* ── RESPONSIVE TWEAKS ── */
        @media (max-width: 768px) {
            .app-header { padding: 0.75rem 1rem; }
            .header-container { flex-direction: column; align-items: stretch; gap: 0.75rem; }
            .nav-tabs { width: 100%; justify-content: space-between; }
            .tab-btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 0.82rem; }
            .hero-title { font-size: 1.6rem; }
            .hero-banner { padding: 1.35rem; }
            .form-card { padding: 1.25rem; }
            .filter-toolbar { flex-direction: column; align-items: stretch; }
            .filter-controls { flex-direction: column; align-items: stretch; }
            .search-box { max-width: 100%; }
        }

        /* ── PRINT STYLES ── */
        @media print {
            body { background: #fff !important; color: #000 !important; }
            .app-header, .nav-tabs, .btn-primary, .btn-secondary, .filter-toolbar, .app-footer, #toast-container { display: none !important; }
            .view-section { display: block !important; }
            .form-card, .company-card, .admin-section { border: 1px solid #ccc !important; background: #fff !important; color: #000 !important; box-shadow: none !important; }
            .styled-table th { background: #f0f0f0 !important; color: #000 !important; }
            .styled-table td { color: #000 !important; }
        }
