:root {
    --primary: #0077b6;
    /* Deep Bright Blue */
    --primary-glow: rgba(0, 119, 182, 0.2);
    --secondary: #fb8500;
    /* Vibrant Orange */
    --accent: #023e8a;
    /* Navy Blue for contrast */
    --bg-page: #00b4d8;
    /* Bright Blue Background */
    --card-bg: #fb8500;
    /* Orange Cards */
    --text-main: #000000;
    /* Black Text */
    --text-muted: #1d3557;
    /* Dark Navy for muted text */
    --success: #065f46;
    --warning: #92400e;
    --btn-bg: #000000;
    /* Black Buttons */
    --btn-text: #00b4d8;
    /* Bright Blue Button Text */
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Auth Pages */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    background-color: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--text-main);
    box-shadow: 0 40px 70px -10px rgba(0, 0, 0, 0.8), 0 20px 30px -15px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: block;
    margin: 0 auto 2.5rem;
    height: 70px;
    padding: 8px 12px;
    background: #000;
    border-radius: 16px;
    object-fit: contain;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-main);
}

.subtitle {
    text-align: center;
    color: var(--text-main);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-main);
    /* Black */
}

input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--text-main);
    border-radius: 12px;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.btn {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--btn-bg);
    border: 2px solid var(--text-main);
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: scale(1.02);
    background-color: #1a1a1a;
    color: var(--btn-text);
    border-color: var(--btn-text);
}

.error-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid var(--text-main);
    border-radius: 12px;
    color: #000;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dashboard */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.header h1 {
    color: #fff;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logout-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.logout-link:hover {
    background: #fff;
    color: var(--text-main);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.col-4 {
    grid-column: span 4;
}

.col-8 {
    grid-column: span 8;
}

.col-12 {
    grid-column: span 12;
}

@media (max-width: 992px) {

    .col-4,
    .col-8 {
        grid-column: span 12;
    }
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--text-main);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8), 0 15px 25px -10px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.card-title i {
    color: var(--text-main);
}

/* Sub Info */
.sub-stat {
    margin-bottom: 1.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 800;
    opacity: 0.7;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-main);
}

.badge {
    padding: 0;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #10b981;
    /* Green Text */
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 10px rgba(16, 185, 129, 0.8);
    /* Stronger Green Glow */
}

.badge-success i {
    color: #10b981;
}

/* Table */
.table-container {
    overflow-x: auto;
}

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

th {
    text-align: left;
    padding: 1rem;
    border-bottom: 3px solid var(--text-main);
    color: var(--text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 900;
}

td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

.receipt-link {
    color: #fff;
    background: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
}

.receipt-link:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .auth-card {
        padding: 2rem;
    }
}