/* Reset and global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Lato', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* Navigation */
.navbar {
    background-color: #0d6efd;
    padding: 10px 20px;
    position: relative;
    color: white;
    font-family: Arial, sans-serif;
}
.menu-container {
    display: flex;
    align-items: center;
}
.logo a {
    color: white;
    font-weight: bold;
    font-size: 1.4em;
    text-decoration: none;
    margin-right: 20px;
}
.menu-icon {
    font-size: 1.8em;
    cursor: pointer;
    user-select: none;
    display: block;
}

/* Sliding Menu */
.menu-links {
    overflow: hidden;
    max-height: 0; /* hidden by default */
    flex-direction: column;
    margin-top: 10px;
    background-color: #0d6efd;
    border-radius: 8px;
    transition: max-height 0.4s ease;
}
.menu-links a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s;
}
.menu-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Desktop view */
@media(min-width: 768px) {
    .menu-icon {
        display: none;
    }
    .menu-links {
        display: flex !important;
        flex-direction: row;
        margin-top: 0;
        gap: 20px;
        max-height: none; /* always visible on desktop */
        background: none;
        border-radius: 0;
    }
    .menu-links a {
        border: none;
        padding: 0;
    }
}


/* Hero Section */
.hero {
    background: linear-gradient(to right, #0d6efd, #0b5ed7);
    color: white;
    padding: 100px 20px;
    text-align: center;
}
.hero h1 span {
    color: #ffd700;
}
.hero p {
    font-size: 1.2em;
    margin: 20px 0;
}
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-primary {
    background: #ffd700;
    color: #0d6efd;
}
.btn-primary:hover {
    background: #e6c200;
}
.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-secondary:hover {
    background: white;
    color: #0d6efd;
}

/* Features Section */
.features {
    padding: 60px 20px;
    text-align: center;
}
.features h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
}

/* Feature Cards Container */
.feature-cards {
    display: flex;
    justify-content: center; /* center cards horizontally */
    gap: 20px; /* space between cards */
    flex-wrap: wrap; /* wrap on smaller screens */
    margin-top: 40px;
}

/* Feature Card Style */
.feature-cards a.card {
    flex: 1 1 250px; /* grow/shrink, minimum width 250px */
    max-width: 280px; /* limit card width */
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* make entire card clickable */
    color: inherit;
    text-align: left;
}
.feature-cards a.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    background: #333;
    color: white;
    margin-top: 60px;
}

/* Responsive */
@media(max-width: 768px) {
    .feature-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* Register Page */
.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background: linear-gradient(to right, #0d6efd, #0b5ed7);
    padding: 40px 20px;
}

.register-container {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.register-container h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #0d6efd;
}

.register-container .subtitle {
    color: #555;
    margin-bottom: 30px;
}

.register-container input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.register-container input:focus {
    border-color: #0d6efd;
    outline: none;
}

.register-container .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.register-container .btn-primary:hover {
    background: #0b5ed7;
}

.register-container .login-link {
    margin-top: 20px;
    font-size: 0.95em;
}

.register-container .login-link a {
    color: #0d6efd;
    text-decoration: none;
}

.register-container .login-link a:hover {
    text-decoration: underline;
}

/* Error Messages */
.error-messages {
    background: #ffe6e6;
    color: #b20000;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background: linear-gradient(to right, #0d6efd, #0b5ed7);
    padding: 40px 20px;
}

.login-container {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-container h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #0d6efd;
}

.login-container .subtitle {
    color: #555;
    margin-bottom: 30px;
}

.login-container input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.login-container input:focus {
    border-color: #0d6efd;
    outline: none;
}

.login-container .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-container .btn-primary:hover {
    background: #0b5ed7;
}

.login-container .register-link {
    margin-top: 20px;
    font-size: 0.95em;
}

.login-container .register-link a {
    color: #0d6efd;
    text-decoration: none;
}

.login-container .register-link a:hover {
    text-decoration: underline;
}

/* Error Messages */
.error-messages {
    background: #ffe6e6;
    color: #b20000;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

/* Dashboard Cards */
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px;
}

.dashboard-cards a.card {
    flex: 1 1 250px;
    max-width: 280px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.dashboard-cards a.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.dashboard-cards a.card h3 {
    color: #0d6efd;
    margin-bottom: 10px;
}

.dashboard-cards a.card p {
    color: #555;
}

/* Hero Section adjustment for logged-in dashboard */
.hero {
    background: linear-gradient(to right, #0d6efd, #0b5ed7);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
}

/* Page container */
.page-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.page-container h2 {
    color: #0d6efd;
    font-size: 2em;
    margin-bottom: 10px;
}

.page-container .subtitle {
    color: #555;
    margin-bottom: 30px;
}

.add-website-form input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.add-website-form input:focus {
    border-color: #0d6efd;
    outline: none;
}

.add-website-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-website-form .btn-primary:hover {
    background: #0b5ed7;
}

/* Success & error messages */
.success-message {
    background: #e6ffe6;
    color: #006600;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.error-messages {
    background: #ffe6e6;
    color: #b20000;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}
/* Earn Traffic Cards */
.earn-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.earn-cards .card {
    flex: 1 1 250px;
    max-width: 280px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.earn-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.earn-cards .card h3 {
    color: #0d6efd;
    margin-bottom: 10px;
}

.earn-cards .card p {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.earn-cards .card .btn-primary {
    padding: 10px 20px;
    font-size: 1em;
    background: #0d6efd;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.earn-cards .card .btn-primary:hover {
    background: #0b5ed7;
}

/* Earn Traffic Page Cards */
.earn-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.earn-cards .card {
    flex: 1 1 250px;
    max-width: 280px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.earn-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.earn-cards .card h3 {
    color: #0d6efd;
    margin-bottom: 10px;
}

.earn-cards .card p {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.earn-cards .card .btn-primary {
    padding: 10px 20px;
    font-size: 1em;
    background: #0d6efd;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

.earn-cards .card .btn-primary:hover {
    background: #0b5ed7;
}

/* Page container */
.page-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #0d6efd, #0b5ed7);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
}
/* Analytics Table */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.analytics-table thead {
    background: #0d6efd;
    color: white;
}

.analytics-table th, .analytics-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.analytics-table tbody tr:hover {
    background: #f1f5fb;
}

.analytics-table a {
    color: #0d6efd;
    text-decoration: none;
}

.analytics-table a:hover {
    text-decoration: underline;
}

/* Page container */
.page-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #0d6efd, #0b5ed7);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
}
/* Profile Page */
.profile-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
}

.profile-card, .stats-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    margin-bottom: 30px;
}

.profile-card p, .stats-card p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    background: #0d6efd;
    color: white;
}

.btn-primary:hover {
    background: #0b5ed7;
}
