/* webpage/style.css */

:root {
    --primary: #1e3a8a; /* Deep royal/corporate blue */
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    
    --bg-app: #f8fafc; /* Professional light slate background */
    --border-color: #e2e8f0;
    
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-muted: #64748b;
    
    --white: #ffffff;
    --danger: #ef4444;
    --success: #15803d;
    --success-bg: #f0fdf4;
    --warning: #b45309;
    --warning-bg: #fffbeb;
    --info-bg: #f0f9ff;
    --info-border: #bae6fd;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR styling */
.app-navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.nav-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* WRAPPER styling */
.main-wrapper {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* AUTHENTICATION VIEW */
.auth-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-top: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* BUTTONS */
.btn {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

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

.btn-secondary {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

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

.btn-link {
    background: none;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: underline;
    align-self: center;
}

.btn-link:hover {
    color: var(--text-dark);
}

.btn-full {
    width: 100%;
}

/* DASHBOARD LAYOUT */
.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    align-items: start;
}

/* SIDEBAR styling */
.dashboard-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.user-profile-header .avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-header .info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-profile-header .info strong {
    font-size: 14px;
    color: var(--text-dark);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-profile-header .info span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    text-align: left;
    transition: all 0.1s;
    width: 100%;
}

.nav-item:hover {
    background-color: #f1f5f9;
    color: var(--text-dark);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* CONTENT PANELS */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-header {
    margin-bottom: 24px;
}

.panel-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.panel-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* CARDS */
.content-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.content-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Status banners */
.status-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    align-items: center;
}

.status-card.success {
    background-color: var(--success-bg);
    border: 1px solid #bbf7d0;
    color: var(--success);
}

.status-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #dcfce7;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-card .text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.status-card .text p {
    font-size: 13px;
    color: #166534;
    line-height: 1.4;
}

/* Lists and details rows */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f1f5f9;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-row .label {
    color: var(--text-muted);
}

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

/* Hackathon detail list */
.hackathon-details p {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-medium);
    margin-right: 6px;
    margin-bottom: 6px;
}

/* DATA TABLES */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th {
    padding: 12px;
    font-weight: 600;
    color: var(--text-medium);
    border-bottom: 2px solid var(--border-color);
    background-color: #f8fafc;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.data-table code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--text-medium);
}

.status-badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.complete {
    background-color: var(--success-bg);
    color: var(--success);
}

/* ALERTS LIST */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

.alert-item.warning {
    border-left: 4px solid #f59e0b;
    background-color: var(--warning-bg);
}

.alert-item.info {
    border-left: 4px solid #0284c7;
    background-color: var(--info-bg);
}

.alert-icon {
    font-size: 20px;
}

.alert-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.alert-body p {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* UTILS */
.hidden {
    display: none !important;
}

.banner {
    width: 100%;
    max-width: 1200px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}

.banner.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.banner.success {
    background-color: var(--success-bg);
    border: 1px solid #bbf7d0;
    color: var(--success);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Auth tabs styling */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    gap: 16px;
}

.auth-tab-btn {
    background: none;
    border: none;
    padding: 10px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.auth-tab-btn:hover {
    color: var(--text-dark);
}

.auth-tab-btn.active {
    color: var(--primary);
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 9999px;
}

.auth-tab-panel {
    display: flex;
    flex-direction: column;
}
