/* ============================================================================
   MINECRAFT THEMED PAYMENT TRACKER
   Modern, Responsive Design with Minecraft Aesthetics
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Minecraft:wght@400;700&display=swap');

:root {
    /* Minecraft Color Palette */
    --mc-grass: #7CBD3B;
    --mc-dirt: #8B6F47;
    --mc-stone: #7F7F7F;
    --mc-diamond: #5DADE2;
    --mc-gold: #F4D03F;
    --mc-redstone: #DC143C;
    --mc-emerald: #50C878;
    --mc-obsidian: #0F0820;
    --mc-wood: #9B7653;
    --mc-sky: #87CEEB;

    /* Modern Gradients */
    --gradient-grass: linear-gradient(135deg, #7CBD3B 0%, #5A9E2A 100%);
    --gradient-diamond: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
    --gradient-gold: linear-gradient(135deg, #F4D03F 0%, #F39C12 100%);
    --gradient-emerald: linear-gradient(135deg, #50C878 0%, #27AE60 100%);
    --gradient-redstone: linear-gradient(135deg, #DC143C 0%, #C0392B 100%);
    --gradient-dark: linear-gradient(135deg, #2C3E50 0%, #1A252F 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.5);
    --shadow-minecraft: 4px 4px 0px rgba(0, 0, 0, 0.4);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #87CEEB 0%, #7CBD3B 50%, #8B6F47 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Minecraft Pixel Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 16px, rgba(0, 0, 0, 0.03) 16px, rgba(0, 0, 0, 0.03) 17px),
        repeating-linear-gradient(90deg, transparent, transparent 16px, rgba(0, 0, 0, 0.03) 16px, rgba(0, 0, 0, 0.03) 17px);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   NAVIGATION - Minecraft Toolbar Style
   ============================================================================ */

.navbar {
    background: var(--gradient-dark) !important;
    box-shadow: var(--shadow-minecraft);
    padding: 0.75rem 0;
    border-bottom: 4px solid var(--mc-obsidian);
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            var(--mc-diamond) 0%,
            var(--mc-emerald) 25%,
            var(--mc-gold) 50%,
            var(--mc-redstone) 75%,
            var(--mc-diamond) 100%);
}

.navbar-brand {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    transform: scale(1.05) translateY(-2px);
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.6);
}

.navbar-brand i {
    color: var(--mc-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mc-emerald);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================================================
   CARDS - Minecraft Block Style
   ============================================================================ */

.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-minecraft);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--mc-diamond), var(--mc-emerald), var(--mc-gold));
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), var(--shadow-minecraft);
}

.card-header {
    background: var(--gradient-dark);
    color: white;
    font-weight: bold;
    padding: 1.25rem;
    border: none;
    font-size: 1.1rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--mc-emerald), var(--mc-diamond), var(--mc-gold));
}

.shadow-lg {
    box-shadow: var(--shadow-lg), var(--shadow-minecraft) !important;
}

/* ============================================================================
   STATISTICS CARDS - Minecraft Item Style
   ============================================================================ */

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-minecraft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 20px);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05) rotate(1deg);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 6px 6px 0px rgba(0, 0, 0, 0.5);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.stat-content h3 {
    font-size: 2.25rem;
    font-weight: bold;
    margin: 0;
    color: #2C3E50;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
}

.stat-content p {
    margin: 0.5rem 0 0 0;
    color: #7F8C8D;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-green {
    border-color: var(--mc-emerald);
}

.card-green .stat-icon {
    background: var(--gradient-emerald);
}

.card-red {
    border-color: var(--mc-redstone);
}

.card-red .stat-icon {
    background: var(--gradient-redstone);
}

.card-blue {
    border-color: var(--mc-diamond);
}

.card-blue .stat-icon {
    background: var(--gradient-diamond);
}

.card-purple {
    border-color: #9B59B6;
}

.card-purple .stat-icon {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
}

.card-orange {
    border-color: var(--mc-gold);
}

.card-orange .stat-icon {
    background: var(--gradient-gold);
}

/* ============================================================================
   TABLES - Minecraft Inventory Style
   ============================================================================ */

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--gradient-dark);
    color: white;
    font-weight: 700;
    border: none;
    padding: 1.25rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    position: relative;
}

.table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--mc-emerald), var(--mc-diamond));
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 2px solid #ECF0F1;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(93, 173, 226, 0.1), rgba(80, 200, 120, 0.1));
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table tbody td {
    padding: 1.25rem;
    vertical-align: middle;
    border-color: #ECF0F1;
    font-weight: 500;
}

/* ============================================================================
   BUTTONS - Minecraft Button Style
   ============================================================================ */

.btn {
    border-radius: 6px;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.3);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--gradient-diamond);
    color: white;
}

.btn-success {
    background: var(--gradient-emerald);
    color: white;
}

.btn-danger {
    background: var(--gradient-redstone);
    color: white;
}

.btn-warning {
    background: var(--gradient-gold);
    color: #2C3E50;
}

.btn-info {
    background: var(--gradient-diamond);
    color: white;
}

.btn-secondary {
    background: var(--gradient-dark);
    color: white;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-info {
    background: white;
    border: 3px solid currentColor;
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary:hover {
    background: var(--mc-diamond);
    color: white;
}

.btn-outline-success:hover {
    background: var(--mc-emerald);
    color: white;
}

.btn-outline-danger:hover {
    background: var(--mc-redstone);
    color: white;
}

.btn-outline-info:hover {
    background: var(--mc-diamond);
    color: white;
}

/* ============================================================================
   FORMS - Minecraft Crafting Table Style
   ============================================================================ */

.form-control,
.form-select {
    border-radius: 6px;
    border: 3px solid #BDC3C7;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mc-diamond);
    box-shadow: 0 0 0 4px rgba(93, 173, 226, 0.2), var(--shadow-sm);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ============================================================================
   BADGES - Minecraft Achievement Style
   ============================================================================ */

.badge {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-success {
    background: var(--gradient-emerald) !important;
}

.bg-danger {
    background: var(--gradient-redstone) !important;
}

.bg-primary {
    background: var(--gradient-diamond) !important;
}

.bg-warning {
    background: var(--gradient-gold) !important;
    color: #2C3E50 !important;
}

/* ============================================================================
   HERO SECTION - Minecraft Title Screen
   ============================================================================ */

.hero-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(26, 37, 47, 0.95));
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl), var(--shadow-minecraft);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 4px solid var(--mc-obsidian);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
    pointer-events: none;
}

.hero-section h1 {
    color: white;
    font-weight: bold;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.hero-section .lead {
    color: #BDC3C7;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.hero-section i {
    color: var(--mc-gold);
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   LOGIN CARD - Minecraft Portal Style
   ============================================================================ */

.login-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-minecraft);
    border: 4px solid var(--mc-obsidian);
}

.login-card .card-body {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 240, 241, 0.98));
    position: relative;
}

.login-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(93, 173, 226, 0.03) 20px,
            rgba(93, 173, 226, 0.03) 40px);
    pointer-events: none;
}

/* ============================================================================
   LIST GROUPS - Minecraft Chat Style
   ============================================================================ */

.list-group-item {
    border: none;
    border-left: 4px solid transparent;
    border-bottom: 2px solid #ECF0F1;
    padding: 1.25rem;
    transition: all 0.3s ease;
    background: white;
}

.list-group-item:hover {
    background: linear-gradient(90deg, rgba(93, 173, 226, 0.1), transparent);
    border-left-color: var(--mc-diamond);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* ============================================================================
   FOOTER - Minecraft Bedrock Style
   ============================================================================ */

.footer {
    background: var(--gradient-dark) !important;
    margin-top: 3rem;
    border-top: 4px solid var(--mc-obsidian);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--mc-diamond), var(--mc-emerald), var(--mc-gold), var(--mc-redstone));
}

/* ============================================================================
   ALERTS - Minecraft Notification Style
   ============================================================================ */

.alert {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-md), var(--shadow-minecraft);
    font-weight: 600;
    border-left: 6px solid;
}

.alert-success {
    background: rgba(80, 200, 120, 0.2);
    border-left-color: var(--mc-emerald);
    color: #27AE60;
}

.alert-danger {
    background: rgba(220, 20, 60, 0.2);
    border-left-color: var(--mc-redstone);
    color: #C0392B;
}

.alert-info {
    background: rgba(93, 173, 226, 0.2);
    border-left-color: var(--mc-diamond);
    color: #2980B9;
}

.alert-warning {
    background: rgba(244, 208, 63, 0.2);
    border-left-color: var(--mc-gold);
    color: #D68910;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.card,
.stat-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .stat-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.2rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .stat-content h3 {
        font-size: 1rem;
    }

    .stat-content p {
        font-size: 0.85rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .card-header {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.bg-gradient {
    background: var(--gradient-dark) !important;
}

code {
    background: linear-gradient(135deg, #ECF0F1, #BDC3C7);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    color: var(--mc-redstone);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    border: 2px solid #95A5A6;
}

.text-minecraft {
    font-family: 'Press Start 2P', cursive;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #ECF0F1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-dark);
    border-radius: 6px;
    border: 2px solid #ECF0F1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mc-diamond);
}