@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-light: #f8fafc;
    --bg-panel: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --primary: #4f46e5; /* Indigo 600 */
    --secondary: #0ea5e9; /* Sky 500 */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Panel styling - Simple, flat, no shadows, no gradients */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Custom Scrollbar - Simple */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar Styling */
.app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 82px;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    z-index: 1000;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
}

.brand-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.brand-icon {
    font-size: 1.6rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sidebar-nav li {
    width: 100%;
}

.sidebar-nav .nav-link {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 14px 0;
    border-radius: 16px;
    color: var(--text-secondary) !important;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1.15rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: var(--text-primary) !important;
    background-color: rgba(0, 0, 0, 0.06);
}

.sidebar-nav .nav-link.icon-only i {
    display: inline-block;
}

.sidebar-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.user-button {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    display: grid;
    place-items: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

.user-button:hover {
    background: rgba(0, 0, 0, 0.04);
}

.logout-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: grid;
    place-items: center;
    color: var(--text-primary);
    background: transparent;
    font-size: 1.1rem;
}

.logout-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Layout adjustments for sidebar */
.content-wrapper {
    margin-left: 82px;
    padding: 32px 32px 48px;
    min-height: 100vh;
    background: var(--bg-light);
}

@media (max-width: 1200px) {
    .app-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 18px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .sidebar-nav {
        display: none;
    }
    .content-wrapper {
        margin-left: 0;
        padding: 24px;
    }
}

/* User Details Modal Styling */
.modal-content {
    border-radius: 20px;
    padding: 18px;
}

.user-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2ff;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Navbar fallback styles for old pages */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary) !important;
    background-color: rgba(79, 70, 229, 0.06);
}

.nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(79, 70, 229, 0.12) !important;
    font-weight: 600;
    border-left: none !important;
}

.nav-logout-btn {
    border-radius: 8px !important;
    padding: 7px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
}

/* Form Styling - Simple Flat Borders */
.form-control, .form-select {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-primary);
    border-radius: 8px;
    padding: 8px 12px;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    outline: none;
    box-shadow: none;
    color: var(--text-primary);
}

label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons - Consistent size, padding, border-radius and color vibe */
.btn {
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #4338ca !important;
    border-color: #4338ca !important;
    color: #ffffff !important;
}

.btn-secondary {
    background-color: #f1f5f9 !important;
    border: 1px solid var(--border-color) !important;
    color: #0f172a !important; /* Bold slate dark text */
}

.btn-secondary:hover {
    background-color: #e2e8f0 !important;
    border-color: var(--border-color) !important;
    color: #0f172a !important;
}

.btn-success {
    background-color: #10b981 !important;
    border: 1px solid #10b981 !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

.btn-danger, .btn-outline-danger {
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
}

/* Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: calc(100vh - 100px);
}

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.panel-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.panel-scrollable {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Tech Badges */
.badge-tech {
    background-color: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

/* Question Rows */
.question-row {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

/* Editor Input */
.markdown-editor {
    width: 100%;
    height: 350px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-primary);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
    padding: 12px;
    resize: none;
    line-height: 1.6;
}

.markdown-editor:focus {
    outline: none;
    border-color: var(--primary);
}

/* Table - Simple Flat */
.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.custom-table tr:hover td {
    background: #f8fafc;
}

/* Pipeline Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-draft { background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; }
.status-applied { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.status-interviewing { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.status-hired { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.status-declined { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* Flat Loader Overlay */
.shimmer-loader {
    background-color: #f1f5f9;
}

#loading-overlay {
    z-index: 10;
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Stat Cards */
.stat-card {
    padding: 16px;
    text-align: center;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Flat Toast Alert */
.custom-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

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

/* Tab Styling */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    gap: 0;
}

.nav-tabs .nav-link {
    color: var(--text-secondary) !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 3px solid transparent;
    padding: 12px 20px !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary) !important;
    border-bottom-color: rgba(79, 70, 229, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
    background: transparent !important;
}

.tab-content {
    border-radius: 0;
}

.tab-pane {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
