/* Admin Panel Styles */
.admin-dashboard {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-header h1 {
    color: var(--primary-blue);
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dashboard-section {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.dashboard-section h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Top Interns List */
.top-interns-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intern-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.intern-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.intern-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-green), #2e7d32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.activity-content small {
    color: var(--text-secondary);
}

/* Batch Stats */
.batch-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.batch-card {
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-teal);
}

.batch-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.batch-card p {
    margin: 0 0 0.75rem 0;
    color: var(--text-secondary);
}

.completion-bar {
    width: 100%;
    height: 8px;
    background: var(--surface-variant);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.completion-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--success-green), #2e7d32);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Profiles Management */
.admin-profiles {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.profiles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.profiles-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.search-input,
.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
    color: var(--text-primary);
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Profiles Table */
.profiles-table {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.profiles-table table {
    width: 100%;
    border-collapse: collapse;
}

.profiles-table th,
.profiles-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.profiles-table th {
    background: var(--surface);
    font-weight: 600;
    color: var(--text-primary);
}

.profiles-table tr:hover {
    background: var(--surface);
}

.profile-name strong {
    display: block;
    color: var(--text-primary);
}

.profile-name small {
    color: var(--text-secondary);
}

.completion-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.completion-indicator .completion-bar {
    flex: 1;
    height: 6px;
}

.completion-indicator span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: rgba(56, 142, 60, 0.1);
    color: var(--success-green);
}

.status-completed {
    background: rgba(25, 118, 210, 0.1);
    color: var(--primary-blue);
}

.status-inactive {
    background: rgba(158, 158, 158, 0.1);
    color: var(--text-disabled);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.5rem;
    min-width: auto;
}

.text-danger {
    color: var(--error-red) !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Admin Styles */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-dashboard,
    .admin-profiles {
        padding: 1rem;
    }

    .dashboard-header,
    .profiles-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .dashboard-actions,
    .profiles-actions {
        display: flex;
        gap: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profiles-filters {
        flex-direction: column;
    }

    .profiles-table {
        overflow-x: auto;
    }

    .profiles-table table {
        min-width: 800px;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }
}

/* Edit Profile Modal */
.profile-form {
    padding: 2rem;
    max-width: 600px;
    width: 90vw;
}

.profile-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-form .form-group.full-width {
    grid-column: 1 / -1;
}

.profile-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .profile-form .form-grid {
        grid-template-columns: 1fr;
    }

    .profile-form .form-actions {
        flex-direction: column;
    }
}