* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
    color: #333;
}

/* ===== HEADER & FOOTER ===== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.login-link, .logout-link {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.login-link:hover, .logout-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    line-height: 1.8;
    font-size: 14px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #2980b9;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    opacity: 0.8;
    font-size: 14px;
}

/* ===== GENERAL ===== */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.message {
    background: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #a7f3d0;
}

.error {
    background: #fee2e2;
    color: #7f1d1d;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

/* ===== FORMS ===== */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    margin: 60px auto;
}

.login-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button[type="submit"],
.btn {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

button[type="submit"]:hover,
.btn:hover {
    background: #764ba2;
}

.demo-accounts {
    margin-top: 25px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
    font-size: 13px;
}

.demo-accounts p {
    text-align: left;
    margin-bottom: 8px;
    color: #555;
}

/* ===== HOME PAGE ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .btn {
    background: white;
    color: #667eea;
    font-weight: 700;
    margin: 0 10px;
}

.hero .btn:hover {
    background: #f0f0f0;
}

.featured-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #333;
    margin-bottom: 10px;
}

.card-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
    margin: 10px 0;
}

.card-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-discount {
    background: #dcfce7;
    color: #166534;
}

.badge-category {
    background: #dbeafe;
    color: #1e40af;
}

.badge-expiry {
    color: #999;
    font-size: 12px;
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.form-card, .coupons-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-card h2, .coupons-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.coupon-item {
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.coupon-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coupon-item h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.coupon-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #667eea;
    font-size: 14px;
    margin-bottom: 8px;
}

.coupon-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.coupon-actions {
    display: flex;
    gap: 8px;
}

.delete-btn {
    padding: 6px 12px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: opacity 0.3s;
}

.delete-btn:hover {
    opacity: 0.8;
}

.edit-btn {
    padding: 6px 12px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: opacity 0.3s;
}

.edit-btn:hover {
    opacity: 0.8;
}

.empty-state {
    color: #999;
    text-align: center;
    padding: 40px 20px;
}

/* ===== INFLUENCER/COMPANY PAGES ===== */
.profile-header {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.profile-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.profile-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    color: #666;
    margin-top: 15px;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.filter-btn:hover {
    border-color: #667eea;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        gap: 10px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }
}