﻿/* =========================
   GENERAL
   ========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}


/* =========================
   NAVBAR
   ========================= */

.navbar {
    background-color: #1f1f1f;
    width: 100%;
}

.navbar-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

    .nav-links a {
        color: #ddd;
        text-decoration: none;
        font-size: 14px;
    }

        .nav-links a:hover {
            color: white;
        }


/* =========================
   MAIN CONTENT
   ========================= */

.main-content {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    min-height: 600px;
}


/* =========================
   FOOTER
   ========================= */

.footer {
    background-color: #1f1f1f;
    color: #aaa;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

    .footer p {
        margin: 5px;
    }


/* =========================
   RESPONSIVE NAVBAR
   ========================= */

@media (max-width: 900px) {

    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* =========================
   HOME PAGE
   ========================= */

.welcome-section {
    text-align: center;
    padding: 60px 20px;
}

    .welcome-section h1 {
        font-size: 42px;
        margin-bottom: 10px;
    }

.tagline {
    font-size: 20px;
    color: #666;
}

.welcome-section p {
    line-height: 1.6;
}


/* =========================
   BUTTONS
   ========================= */

.button-container {
    margin-top: 30px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 12px 24px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
}

.primary-button {
    background-color: #222;
    color: white;
}

.secondary-button {
    border: 1px solid #222;
    color: #222;
}

.primary-button:hover {
    background-color: #444;
}

.secondary-button:hover {
    background-color: #eee;
}


/* =========================
   FEATURE CARDS
   ========================= */

.feature-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background-color: white;
    padding: 25px;
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .feature-card h2 {
        margin-top: 0;
    }

    .feature-card p {
        color: #666;
        line-height: 1.5;
    }


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    .feature-container {
        flex-direction: column;
    }

    .welcome-section h1 {
        font-size: 32px;
    }
}

/* =========================
   FORM
   ========================= */

.form-container {
    max-width: 500px;
    margin: 40px auto;
    background-color: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .form-container h1 {
        text-align: center;
        margin-bottom: 30px;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 7px;
        font-weight: bold;
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.error-message {
    display: block;
    color: #d00000;
    font-size: 13px;
    margin-top: 5px;
}

.success-message {
    display: block;
    color: green;
    margin-top: 15px;
}

/* Dashboard */

.dashboard-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

    .dashboard-container h1 {
        margin-bottom: 5px;
    }

.dashboard-subtitle {
    color: #666;
    margin-bottom: 30px;
}

/*.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}*/

.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}*/

/*.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
}*/

    .dashboard-card h3 {
        margin-bottom: 15px;
    }

    .dashboard-card span {
        font-size: 32px;
        font-weight: bold;
    }

.activity-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .activity-section h2 {
        margin-bottom: 20px;
    }

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

    .activity-item:last-child {
        border-bottom: none;
    }

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .form-container h1 {
        margin-bottom: 10px;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* =========================
   ADD TO WATCHLIST BUTTON
   ========================= */

.add-title-section {
    text-align: center;
    margin: 30px 0;
}

.add-watchlist-btn {
    background-color: #1f1f1f;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

    .add-watchlist-btn:hover {
        background-color: #444;
    }


/* =========================
   WATCHLIST
   ========================= */

.watchlist-grid {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .watchlist-grid th {
        background-color: #1f1f1f;
        color: white;
        padding: 12px;
        text-align: left;
    }

    .watchlist-grid td {
        padding: 12px;
        border-bottom: 1px solid #ddd;
    }

    .watchlist-grid tr:hover td {
        background-color: #f5f5f5;
    }

.register-link {
    text-align: center;
    margin-top: 20px;
}

    .register-link a {
        color: #1f1f1f;
        font-weight: bold;
        text-decoration: none;
    }

        .register-link a:hover {
            text-decoration: underline;
        }