@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* "Professional Sunset" Palette (Purple & Orange) */
    /* Primary (Clean White/Warm Gray) */
    --bg-main: #FDF9F6;
    /* Very light warm background */
    --surface-white: #FFFFFF;

    /* Accents (Purple & Orange) */
    --primary: #8E24AA;
    /* Vibrant Purple */
    --primary-light: #AB47BC;
    /* Lighter Purple */
    --secondary: #FF6D00;
    /* Vibrant Orange */

    /* Text */
    --text-main: #2D1B2E;
    /* Dark Purple-Black for text */
    --text-secondary: #745874;
    /* Muted Purple-Gray */

    /* Status */
    --success: #00C853;
    --danger: #FF1744;
    --warning: #FFD600;

    /* UI Elements */
    --border-light: #E0E5F2;
    --shadow-card: 0px 18px 40px rgba(112, 144, 176, 0.12);
    --shadow-hover: 0px 25px 50px rgba(112, 144, 176, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: linear-gradient(135deg, #FDF9F6 0%, #FFF3E0 100%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Creative Background Blobs */
body::before {
    content: '';
    position: fixed;
    top: -10vw;
    right: -5vw;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(142, 36, 170, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10vw;
    left: -10vw;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 109, 0, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 15s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Modern Glass Card */
.card {
    background: var(--surface-white);
    border-radius: 30px;
    /* Super rounded modern look */
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

/* Inputs with floating focus */
input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    border: 2px solid transparent;
    /* Prepare for gradient border trick or solid color */
    background: #FDF9F6;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(142, 36, 170, 0.1);
}

/* Buttons - "Gradient Pills" */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(142, 36, 170, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(142, 36, 170, 0.35);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 109, 0, 0.1) 0%, rgba(142, 36, 170, 0.1) 100%);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(142, 36, 170, 0.15);
}

/* Navbar - Floating style */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    margin: 1rem 2rem;
    border-radius: 20px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 1rem;
    z-index: 100;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Tables */
.table-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: linear-gradient(90deg, #FFF3E0 0%, #F3E5F5 100%);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Active Button State for Tabs */
.btn-active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 8px 15px rgba(142, 36, 170, 0.3) !important;
    transform: translateY(-2px);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

/* Dashboard Specifics */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 2rem;
}