/* Modern SaaS Base styles */
:root {
    --primary-color: #1f2a47; /* Navy blue header */
    --primary-dark: #18223b;
    --primary-light: #2d3a5d;
    --secondary-color: #bf5c5c; /* Red button color */
    --secondary-dark: #a85050;
    --accent-color: #bf5c5c; /* Red accent */
    --background-color: #ffffff; /* White background */
    --surface-color-1: #f7f9fc; /* Light gray background */
    --surface-color-2: #edf2f7; /* Slightly darker card bg */
    --text-color: #2d3748; /* Dark gray for text */
    --text-color-2: #4a5568; /* Medium gray for secondary text */
    --text-muted: #718096; /* Light gray for muted text */
    --text-light: #ffffff; /* White text for dark backgrounds */
    --success-color: #38b2ac; /* Teal green */
    --error-color: #e53e3e; /* Red */
    --border-color: #e2e8f0; /* Light gray borders */
    --gradient-1: linear-gradient(135deg, var(--primary-color), #3a4d7a);
    --gradient-2: linear-gradient(90deg, var(--primary-color), #3a4d7a);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Other */
    --border-radius-sm: 4px;
    --border-radius: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
    --transition-base: all 0.3s ease;
}

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--surface-color-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1rem;
    color: var(--text-color-2);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-light);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

.text-highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    height: 125px;
    margin-right: 1rem;
    margin-left: 1rem;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
}

.nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link:hover:after {
    width: 100%;
}

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

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
}

.button-arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.button:hover .button-arrow {
    transform: translateX(3px);
}

.button-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.button-primary:hover {
    background: var(--secondary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.button-secondary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.button-secondary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.button-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.button-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.button-text {
    background: transparent;
    color: var(--secondary-color);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.button-text:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.button-text:hover .button-arrow {
    transform: none;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: #fff; /* White text on background */
    padding: 60px 20px;
    text-align: center;
    position: relative;
    /* background-image: url('/static/images/hero-bg.jpg'); */
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 42, 71, 0.7);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.hero-tab {
    padding: 0.5rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-base);
}

.hero-tab.active {
    background-color: white;
    color: var(--primary-color);
}

.search-bar {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-button {
    padding: 1rem 2rem;
    background-color: var(--primary-dark);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-button:hover {
    background-color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    background-color: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color-2);
    font-weight: 500;
}

/* Dashboard Section */
.dashboard-section {
    padding: 2rem 0;
}

.dashboard-welcome {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.dashboard-welcome-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.dashboard-welcome-subtitle {
    color: var(--text-color-2);
    margin-bottom: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.dashboard-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-card-title {
    font-size: 1.25rem;
    margin: 0;
    color: var(--primary-color);
}

/* Style the title span like a button, but adjust padding/margins */
.dashboard-card-title .button {
    padding: 0.3rem 0.8rem; /* Reduced padding */
    margin: 0; /* Remove margin from h3 */
    font-size: 1rem; /* Adjust font size if needed */
    display: inline-block; /* Ensure it behaves like a button */
    vertical-align: middle; /* Align vertically if needed */
    line-height: normal; /* Adjust line height */
    box-shadow: none; /* Optionally remove button shadow */
    transform: none; /* Remove hover transform */
}

.dashboard-card-title .button:hover {
    box-shadow: none; /* Optionally remove button shadow on hover */
    transform: none; /* Remove hover transform */
}

.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--surface-color-1);
    border-radius: 50%;
    color: var(--primary-color);
}

.dashboard-card-content {
    flex: 1;
}

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

.dashboard-card-stat {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.dashboard-table th {
    background-color: var(--surface-color-1);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
}

.dashboard-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem; /* Adjusted padding slightly */
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600; /* Made slightly bolder */
    text-transform: uppercase; /* Uppercase for consistency */
    letter-spacing: 0.5px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

/* Green Statuses */
.status-completed,
.status-ok,
.status-active { /* Keep active as green */
    background-color: rgba(72, 187, 120, 0.15); /* Lighter Green background */
    color: #2f855a; /* Darker Green text */
}

/* Red Statuses */
.status-failed,
.status-error {
    background-color: rgba(229, 62, 62, 0.15); /* Lighter Red background */
    color: #c53030; /* Darker Red text */
}

/* Yellow/Orange Statuses */
.status-processing,
.status-warning,
.status-throttled,
.status-pending { /* Keep pending as yellow */
    background-color: rgba(237, 137, 54, 0.15); /* Lighter Orange background */
    color: #dd6b20; /* Darker Orange text */
}

/* Progress Bar Styles */
.progress-bar-container {
    width: 100%;
    background-color: var(--surface-color-2);
    border-radius: var(--border-radius-sm);
    height: 8px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    transition: width 0.3s ease;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    padding: 3rem 0 1.5rem;
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 120px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-links-group h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Content for privacy/terms pages */
.content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color-2);
}

.content li {
    margin: 0.5rem 0;
}

.content p {
    margin-bottom: 1rem;
}

.content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content a:hover {
    color: var(--primary-light);
}

/* Auth container */
.auth-container {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 40px auto;
    border: 1px solid var(--border-color);
}

.auth-message {
    font-size: 1.2rem;
    margin: 20px 0;
    color: var(--text-muted);
}

/* Error and success states */
.error {
    color: var(--error-color);
}

.success {
    color: var(--success-color);
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav, .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Dashboard Section Specific Styles */
#recent-talent-card .dashboard-card-content {
    max-height: 300px; /* Adjust as needed */
    overflow-y: auto;
    padding-right: 5px; /* Add a little padding so content doesn't touch scrollbar */
}

/* Minimalist Scrollbar Styling (WebKit/Blink browsers) */
#recent-talent-card .dashboard-card-content::-webkit-scrollbar {
    width: 6px; /* Width of the scrollbar */
}

#recent-talent-card .dashboard-card-content::-webkit-scrollbar-track {
    background: transparent; /* Make track invisible */
    margin: 5px 0; /* Add some margin top/bottom */
}

#recent-talent-card .dashboard-card-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent dark thumb */
    border-radius: 10px; /* Rounded corners */
    border: none; /* No border */
}

#recent-talent-card .dashboard-card-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4); /* Darken on hover */
}

/* Minimalist Scrollbar Styling (Firefox - basic color) */
/* Note: Firefox scrollbar styling is less flexible */
#recent-talent-card .dashboard-card-content {
  scrollbar-width: thin;          /* "auto" or "thin" */
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;   /* thumb color track color */
}

/* Styles for the action cell and button */
.action-cell {
    text-align: center; /* Center the icon button */
}

.button-icon {
    padding: 0.3rem; /* Smaller padding for icon-only buttons */
    line-height: 1; /* Ensure icon is centered vertically */
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    box-shadow: none;
}

.button-icon:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Subtle hover */
    color: var(--text-color-2);
    transform: none; /* Override default button hover transform */
    box-shadow: none;
}

.button-icon .icon-small {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Spinning animation for loader icon */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
} 

/* Notification Card Specific Styles */
.dashboard-card.span-2 {
    grid-column: span 2; /* Make card span two columns if grid allows */
}

@media (max-width: 768px) {
    .dashboard-card.span-2 {
        grid-column: span 1; /* Span one column on smaller screens */
    }
}

.notifications-container {
    max-height: 400px; /* Adjust as needed */
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

/* Minimalist Scrollbar for Notifications */
.notifications-container::-webkit-scrollbar {
    width: 6px;
}
.notifications-container::-webkit-scrollbar-track {
    background: transparent;
    margin: 5px 0;
}
.notifications-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: none;
}
.notifications-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}
.notifications-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.notifications-items-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

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

.notification-item.viewed {
    background-color: var(--surface-color-1); /* Slightly different background for viewed items */
    opacity: 0.7;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.notification-header .timestamp {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.notification-header .task-type {
    font-weight: 600;
    color: var(--primary-dark);
}

.notification-header .candidate-id {
    color: var(--text-color-2);
}

/* Use existing status badge styles, just ensure they are applied */
.notification-header .status-badge {
    margin-left: auto; /* Push badge to the right if needed after other elements */
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

.notification-message {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.notification-message.collapsible .expand-link {
    color: var(--secondary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 5px;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.notification-actions .button-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.notification-actions .button-icon .icon-small {
    width: 14px;
    height: 14px;
}

.loading-text, .no-notifications, .error-text {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}

.notification-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.notification-controls label {
    color: var(--text-color-2);
}

#show-viewed-toggle {
    accent-color: var(--primary-color);
} 
