* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR */
.navbar { background: #1a3c5e; color: white; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: white; text-decoration: none; font-size: 1.3rem; font-weight: bold; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: white; text-decoration: none; padding: 8px 16px; border-radius: 6px; transition: background 0.2s; }
.nav-links a:hover { background: rgba(255,255,255,0.1); }
.admin-nav { background: #2d1b5e; }

/* HERO */
.hero { background: linear-gradient(135deg, #1a3c5e 0%, #2980b9 100%); color: white; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn-primary { background: #e67e22; color: white; padding: 12px 28px; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 1rem; font-weight: 600; display: inline-block; transition: background 0.2s; }
.btn-primary:hover { background: #d35400; }
.btn-outline { background: transparent; color: #1a3c5e; padding: 12px 28px; border: 2px solid #1a3c5e; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 1rem; display: inline-block; transition: all 0.2s; }
.btn-outline:hover { background: #1a3c5e; color: white; }
.btn-large { font-size: 1.1rem; padding: 16px 36px; }
.btn-full { width: 100%; text-align: center; }
.btn-sm { padding: 5px 12px; font-size: 0.85rem; border-radius: 4px; text-decoration: none; display: inline-block; }
.btn-success { background: #27ae60; color: white; }
.btn-danger { background: #e74c3c; color: white; }

/* FEATURES */
.features { padding: 60px 0; background: white; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card { background: #f8f9fa; padding: 30px; border-radius: 12px; text-align: center; border: 1px solid #e9ecef; transition: transform 0.2s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 15px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #1a3c5e; }

/* AUTH */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 80vh; padding: 40px 20px; }
.auth-card { background: white; padding: 40px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); width: 100%; max-width: 480px; }
.admin-card { border-top: 4px solid #2d1b5e; }
.admin-subtitle { text-align: center; color: #666; margin-bottom: 25px; }
.auth-card h2 { text-align: center; margin-bottom: 25px; color: #1a3c5e; font-size: 1.6rem; }
.auth-link { text-align: center; margin-top: 20px; color: #666; }
.auth-link a { color: #2980b9; }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #555; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #e1e8ed; border-radius: 8px; font-size: 1rem; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #2980b9; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 10px; }
.form-card { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); max-width: 700px; margin: 0 auto; }
.consent-box { background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid #e1e8ed; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checkbox-label input { margin-top: 3px; width: auto; flex-shrink: 0; }

/* ALERTS */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.alert-error { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* MAIN CONTENT */
.main-content { padding: 40px 0; }

/* TENDERS */
.tenders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }
.tender-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.07); border: 1px solid #e9ecef; transition: box-shadow 0.2s; }
.tender-card:hover { box-shadow: 0 5px 25px rgba(0,0,0,0.12); }
.tender-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.tender-header h3 a { color: #1a3c5e; text-decoration: none; font-size: 1.1rem; }
.tender-header h3 a:hover { color: #2980b9; }
.category-badge { background: #e8f4fd; color: #2980b9; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; white-space: nowrap; }
.tender-desc { color: #666; margin-bottom: 15px; }
.tender-meta { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; font-size: 0.9rem; color: #555; }
.tender-detail { background: white; padding: 35px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.tender-info { display: flex; gap: 20px; flex-wrap: wrap; margin: 15px 0 25px; padding: 15px; background: #f8f9fa; border-radius: 8px; }
.tender-description { margin-bottom: 30px; }
.offers-section { margin-top: 30px; }
.offer-form { background: #f8f9fa; padding: 25px; border-radius: 10px; margin-bottom: 25px; border: 1px solid #e1e8ed; }
.offers-comparison { overflow-x: auto; }
.best-offer { background: #f0fff4 !important; }

/* TABLES */
.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.data-table th { background: #1a3c5e; color: white; padding: 14px 16px; text-align: left; font-weight: 600; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.data-table tr:hover td { background: #f8f9fa; }
.data-table tr:last-child td { border-bottom: none; }

/* BADGES */
.badge { padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved, .badge-active, .badge-accepted { background: #d4edda; color: #155724; }
.badge-rejected, .badge-blocked { background: #f8d7da; color: #721c24; }
.badge-closed { background: #e2e3e5; color: #383d41; }

/* DASHBOARD */
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.dashboard-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.empty-msg { text-align: center; color: #666; padding: 30px; background: #f8f9fa; border-radius: 8px; }
.empty-state { text-align: center; padding: 60px; color: #666; }

/* ADMIN STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 35px; }
.stat-card { background: white; padding: 25px; border-radius: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-top: 4px solid #ccc; }
.stat-warning { border-top-color: #f39c12; }
.stat-success { border-top-color: #27ae60; }
.stat-info { border-top-color: #2980b9; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: #1a3c5e; }
.stat-label { color: #666; margin: 5px 0 10px; }
.admin-section { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 25px; }
.admin-section h2 { margin-bottom: 20px; color: #1a3c5e; }

/* CONTENT PAGE */
.content-page { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); max-width: 800px; margin: 0 auto; }
.content-page h1 { color: #1a3c5e; margin-bottom: 10px; }
.content-page h2 { color: #2980b9; margin: 25px 0 10px; }
.content-page p { margin-bottom: 15px; }

/* FOOTER */
.footer { background: #1a3c5e; color: rgba(255,255,255,0.8); text-align: center; padding: 25px 0; margin-top: 60px; }

@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .navbar .container { flex-direction: column; gap: 15px; }
    .tenders-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}