/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e4e4e7;
    background-color: #18181b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #27272a;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-bottom: 1px solid #3f3f46;
}

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

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-warning {
    background-color: #f59e0b;
    color: #18181b;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3f3f46;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #27272a;
    color: #e4e4e7;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: auto;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: #27272a;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid #3f3f46;
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    margin-bottom: 0.5rem;
    color: #f4f4f5;
}

.auth-subtitle {
    color: #a1a1aa;
    margin-bottom: 2rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: #a1a1aa;
}

/* Alerts */
.flash-messages {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Dashboard */
.dashboard h2 {
    margin-bottom: 2rem;
    color: #f4f4f5;
}

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

.stat-card {
    background: #27272a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #3f3f46;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #a1a1aa;
    margin-bottom: 1rem;
}

/* Applicants */
.applicants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.applicant-card {
    background: #27272a;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #3f3f46;
}

.applicant-card h4 {
    margin-bottom: 0.5rem;
    color: #f4f4f5;
}

.applicant-card p {
    margin-bottom: 0.5rem;
}

.text-muted {
    color: #a1a1aa;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    background: #27272a;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #3f3f46;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #f4f4f5;
}

.empty-state p {
    color: #a1a1aa;
    margin-bottom: 2rem;
}

/* Section */
.section {
    background: #27272a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #3f3f46;
    margin-bottom: 2rem;
}

.section h3 {
    margin-bottom: 1.5rem;
    color: #f4f4f5;
}

/* Matches */
.matches-list {
    margin-bottom: 1.5rem;
}

.match-item {
    padding: 1.5rem;
    border: 1px solid #3f3f46;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: #27272a;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.match-header h4 {
    flex: 1;
    margin: 0;
}

.match-header a {
    color: #f4f4f5;
    text-decoration: none;
}

.match-header a:hover {
    color: #3b82f6;
}

.match-applicant, .match-amount, .match-deadline {
    margin: 0.25rem 0;
    color: #a1a1aa;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Footer */
.footer {
    background: #27272a;
    color: #a1a1aa;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #3f3f46;
}

/* Password change info boxes */
.info-box {
    background-color: #3f3f46;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* User info display box */
.user-info-box {
    background-color: #27272a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.user-info-box p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-user {
        flex-direction: column;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 1rem;
        margin-left: 0;
        padding-left: 0;
    }

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

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