/* =========================================
   Import Premium Google Fonts
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Montserrat:wght@500;700;800&display=swap');

/* =========================================
   Color Palette & Base Setup
   ========================================= */
:root {
    --bg-dark: #151821;
    --card-dark: #1e222d;
    --text-light: #ffffff;
    --text-muted: #a0a5b5;
    --accent-color: #d122e3; /* Pinkish-Purple */
    --accent-glow: rgba(209, 34, 227, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-family: 'Inter', sans-serif; /* Clean body text */
}

h1, h2, h3, .logo, .btn-accent, .btn-nav {
    font-family: 'Montserrat', sans-serif; /* Sleek headings */
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(21, 24, 33, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.logo small {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-light);
    text-shadow: 0 0 8px var(--accent-glow);
}

.client-login-link {
    color: var(--accent-color) !important;
    font-size: 0.95rem;
}

/* =========================================
   Buttons
   ========================================= */
.btn-nav {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-accent {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 20px;
    transition: 0.3s;
    box-shadow: 0 0 10px var(--accent-glow);
}

.btn-accent:hover {
    box-shadow: 0 0 20px var(--accent-color);
    transform: translateY(-2px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    text-align: center;
    padding: 100px 20px 60px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   Services Section (Cards with Glow)
   ========================================= */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 5%;
    flex-wrap: wrap;
}

.service-card {
    background-color: var(--card-dark);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    box-shadow: 0 0 20px var(--accent-glow);
    opacity: 0.5;
    transition: 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 30px var(--accent-color);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* =========================================
   Forms (Contact & Login)
   ========================================= */
.form-container {
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 40px;
    background: var(--card-dark);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.auth-container {
    max-width: 450px; /* Slightly narrower for login */
    text-align: center;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    box-shadow: 0 0 15px var(--accent-glow);
    opacity: 0.3;
    pointer-events: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--card-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 5% 20px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* =========================================
   Dashboard Grid Layouts
   ========================================= */
.dashboard-container {
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Dashboard Cards */
.dash-card {
    background-color: var(--card-dark);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.dash-card h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.dash-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   Admin Tables (Master Dashboard)
   ========================================= */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-dark);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th, .admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(209, 34, 227, 0.2);
    color: var(--accent-color);
}

/* =========================================
   Modals (First-Time Login Popup)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 12, 18, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Hidden by default, we will toggle this with JS or Backend logic */
    display: none; 
}

/* Add this class to show the modal */
.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-dark);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
    text-align: center;
}