:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.55);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(147, 51, 234, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.logout-link {
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.05);
    transition: all 0.2s ease !important;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 50px;
}

/* Status Section */
.status-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .status-section {
        grid-template-columns: 1fr 1fr;
    }
}

.status-card {
    padding: 24px;
}

.status-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}

.status-desc strong {
    color: var(--text-main);
}

.status-desc code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.btn-secondary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    align-self: center;
}

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

.action-buttons {
    margin-top: 15px;
}

/* Filters */
.filter-section {
    padding: 24px;
}

.filter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .filter-form {
        grid-template-columns: 2fr 1fr 1fr auto;
        align-items: flex-end;
    }
}

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

.filter-group label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.filter-group input, .filter-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.filter-group input:focus, .filter-group select:focus {
    border-color: var(--primary);
}

.filter-actions {
    flex-direction: row;
    gap: 10px;
}

/* Results */
.results-section {
    padding: 24px;
}

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

.results-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.results-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.bids-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.bids-table th, .bids-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
    vertical-align: middle;
}

.bids-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bids-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.portal-tag {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.bid-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.bid-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

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

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.alert.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Profile Form */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.profile-container h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-container p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

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