/* General Body and Layout */
body {
    font-family: Arial, sans-serif;
    background-color: #121212; /* Very dark background for App theme */
    color: #f0f0f0; 
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.wrapper {
    /* FIX 1: Reduced margin to 10px for smaller gap */
    width: 95%; 
    max-width: 800px;
    margin: 10px auto 0 auto; /* Top margin reduced */
    padding: 20px;
    background-color: transparent; 
    box-shadow: none;
    min-height: calc(100vh - 40px);
    padding-bottom: 80px;
}

/* Header/Navigation (Kept basic for login/register pages) */
header {
    background-color: #1c1c1c; 
    color: #fff;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px; 
    border-bottom: 1px solid #282828;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: #fff;
    text-decoration: none;
    padding: 0 15px;
}

header a:hover {
    color: #ffc107; /* Gold highlight */
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #909090;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px; 
    background-color: #2a2a30;
    color: #f0f0f0;
    box-sizing: border-box;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px; 
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #7B3EAB; /* YieldX One Purple */
    color: white;
}

.btn-primary:hover {
    background-color: #5d2f80;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #bd2130;
}

/* Messages & Alerts */
.success {
    background-color: #28a74533;
    color: #28a745;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #28a745;
    border-radius: 8px;
}

.error, .has-error .help-block {
    background-color: #dc354533;
    color: #dc3545;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #dc3545;
    border-radius: 8px;
}

.warning {
    background-color: #ffc10733;
    color: #ffc107;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1c1c1c; 
    border-radius: 10px;
    overflow: hidden; 
    border: none;
}

table th, table td {
    padding: 12px;
    border: 1px solid #282828; 
    text-align: left;
}

table th {
    background-color: #282828;
    color: #fff;
    font-weight: normal;
}

/* Wallet and Stake Cards */
.plan-card, .wallet-card, .stake-card {
    background-color: #1c1c1c; 
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 20px; 
    border: 1px solid #282828;
    border-left: none;
}
.deposit-info {
    border: 1px dashed #7B3EAB;
    padding: 10px;
    background-color: #1a1b20;
    margin: 10px 0;
    border-radius: 8px;
}
.fee-note {
    color: #f0f0f0;
    font-style: italic;
    background-color: #dc354533;
    padding: 5px;
    border-radius: 3px;
}
/* Status indicators */
.status-pending { color: orange; font-weight: bold; }
.status-approved { color: #28a745; font-weight: bold; }
.status-rejected { color: #dc3545; font-weight: bold; }
.status-completed { color: #7B3EAB; font-weight: bold; }


/* ============================================= */
/* NEW APP-STYLE CLASSES (for Dashboard) */
/* ============================================= */

/* Main App Card Style (Standard Card) */
.app-card {
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 20px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #282828;
    flex: 1 1 100%; 
}

.app-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.app-card.quarter-width {
    flex: 1 1 calc(50% - 15px);
    min-width: 150px; 
}

/* App Metric Styling */
.color-lime { color: #8aff33; } /* Bright Green/Lime */
.color-violet { color: #8a2be2; } /* Bright Violet/Purple */
.color-red-app { color: #ff4500; } /* Orange-Red for negative */
.color-gold { color: #ffc107; } /* Gold/Orange mix */

/* Font Sizing for Metrics */
.app-metric-value {
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 5px;
}
.app-subtitle {
    color: #909090;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Style for Top Header Logo/Status */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #282828;
    /* FIX 2: Reduced vertical padding */
}

/* FIX 3: Guaranteed Status Colors */
.status-tag {
    /* Overriding default status color with explicit color */
    background-color: #121212; 
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    border: 1px solid;
}
.status-tag.active {
    color: #121212;
    background-color: #28a745; /* Green */
    border-color: #28a745;
}
.status-tag.inactive {
    color: #121212;
    background-color: #ffc107; /* Gold/Orange */
    border-color: #ffc107;
}

/* GLOW EFFECT (HOLIYUVU RITHI) */
.welcome-box {
    padding: 10px 20px;
    border-radius: 15px;
    background: #1a1a1a;
    border: 1px solid #ffc10740;
    box-shadow: 0 0 10px #ffc10780; /* Soft outer gold glow */
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 8px #ffc10780, 0 0 0 rgba(255, 193, 7, 0);
    }
    to {
        box-shadow: 0 0 15px #ffc107, 0 0 5px #ff4500;
    }
}


/* BOTTOM NAVIGATION BAR (New Element) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 800px; 
    margin: 0 auto;
    background-color: #1c1c1c;
    border-top: 1px solid #282828;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000; 
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: #909090;
    font-size: 0.8em;
    padding: 5px;
    transition: color 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: #ffc107; 
}

.nav-icon {
    font-size: 1.5em;
    margin-bottom: 3px;
    display: block;
}