:root {
    --primary-color: #fbfbfb;
    --secondary-color: #ffffff;
    --accent-color: #111111;
    --accent-hover: #333333;
    --text-primary: #000000;
    --text-secondary: #555555;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -1.5px;
}

h1 { font-size: 4.5rem; margin-bottom: 20px; }
h2 { font-size: 3rem; letter-spacing: -1px; }
p { color: var(--text-secondary); font-weight: 400; }

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
header {
    position: fixed;
    top: 30px;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    padding: 10px 10px 10px 30px;
    box-shadow: var(--shadow-soft);
    width: 90%;
    max-width: 1100px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--text-secondary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 10px 0;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--accent-color);
    opacity: 0.7;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 10px;
    z-index: 200;
}

.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
    width: 100%;
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    background: rgba(0,0,0,0.03);
    color: var(--text-primary);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    border-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Floating Elements (Small squares like in the new image) */
.floating-widget {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.floating-widget img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.floating-widget.w1 { top: 25%; left: 15%; animation-delay: 0s; }
.floating-widget.w2 { top: 30%; right: 15%; animation-delay: 1s; }
.floating-widget.w3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.floating-widget.w4 { bottom: 35%; right: 20%; animation-delay: 1.5s; }
.floating-widget.w5 { bottom: 20%; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section-padding {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 15px;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #f0f0f0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
    margin-top: auto;
}

.card-link:hover {
    opacity: 0.6;
}

/* Footer */
footer {
    background: #ffffff;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Page Transitions & Entry Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-scale {
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Dashboard & Forms Base Styles */
.dashboard-body {
    background-color: var(--primary-color);
    display: flex;
    min-height: 100vh;
}

.dashboard-body h1, .dashboard-body h2, .dashboard-body h3, .dashboard-body h4 {
    letter-spacing: normal;
    font-weight: 600;
}

.sidebar {
    width: 250px;
    background: #ffffff;
    height: 100vh;
    padding: 30px 20px;
    border-right: 1px solid var(--glass-border);
    position: fixed;
    z-index: 10;
}

.sidebar .logo {
    display: block;
    margin-bottom: 50px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 40px;
    background-color: var(--primary-color);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.table-container {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: var(--primary-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    margin-right: 10px;
    transition: var(--transition);
    font-weight: 600;
}

.action-btn.edit:hover { color: #2563eb; }
.action-btn.delete:hover { color: #ef4444; }

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Auth Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background-color: var(--primary-color);
}

.auth-box {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.auth-box h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    letter-spacing: -1px;
}

/* ─── Hamburger Menu ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ─── Mobile Nav ─── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}
.mobile-menu-close {
    position: absolute;
    top: 24px; right: 24px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    h1 { font-size: 2.6rem; letter-spacing: -1px; }
    h2 { font-size: 2rem; }

    nav { padding: 10px 16px; width: 92%; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero { padding-top: 120px; }
    .hero-content p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }

    .floating-widget { display: none; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item h3 { font-size: 2rem; }

    .grid-3 { grid-template-columns: 1fr; }

    .section-padding { padding: 60px 0; }

    footer { padding: 50px 0 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
