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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #faf0e6;
    color: #333;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1493 50%, #ff8c42 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: #fff5f5;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.3);
    border: 3px solid #dc143c;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 48px;
    color: #ff1493;
    margin-bottom: 10px;
}

.login-header h1 {
    color: #ff1493;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-header p {
    color: #ff6b9d;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ff1493;
    font-weight: 600;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dc143c;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #fff5f5;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #ff1493;
    background: white;
    box-shadow: 0 0 8px rgba(255, 20, 147, 0.3);
}

.form-group label i {
    margin-right: 5px;
    color: #ff1493;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #dc143c;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #fff5f5;
}

.form-group input:focus {
    outline: none;
    border-color: #ff1493;
    background: white;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4169e1 0%, #1e90ff 100%);
    color: white;
    border: 2px solid #1e90ff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

.error-message {
    color: #dc143c;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* Admin Panel Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #ff1493 0%, #ff6b9d 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 3px solid #dc143c;
}

.sidebar-header {
    padding: 20px;
    background: #ff1493;
    border-bottom: 3px solid #dc143c;
}

.sidebar-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff5f5;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-left-color: #ff8c42;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-left-color: #dc143c;
    font-weight: 600;
}

.nav-item i {
    width: 20px;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    background: #faf0e6;
}

.top-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8c42 100%);
    padding: 20px 30px;
    border-bottom: 3px solid #dc143c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.2);
}

.top-header h1 {
    font-size: 24px;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.user-info {
    color: white;
    font-weight: 600;
}

.content-area {
    padding: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1493 100%);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #dc143c;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff8c42 0%, #ffa07a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border: 2px solid #dc143c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-info h3 {
    font-size: 28px;
    color: white;
    margin-bottom: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.stat-info p {
    color: #fff5f5;
    font-size: 14px;
    font-weight: 600;
}

/* Table */
.table-container {
    background: #fff5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
    border: 2px solid #dc143c;
}

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

table thead {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1493 100%);
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: 3px solid #dc143c;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

table td {
    padding: 15px;
    border-bottom: 1px solid #ffb6c1;
    background: #fff5f5;
}

table tbody tr:hover {
    background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%);
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: 2px solid;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #4169e1 0%, #1e90ff 100%);
    color: white;
    border-color: #1e90ff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #32cd32 0%, #00ff00 100%);
    color: white;
    border-color: #00ff00;
}

.btn-success:hover {
    background: linear-gradient(135deg, #00ff00 0%, #32cd32 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc143c 0%, #c41e3a 100%);
    color: white;
    border-color: #c41e3a;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #dc143c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #8b008b 0%, #9370db 100%);
    color: white;
    border-color: #9370db;
}

.btn-info:hover {
    background: linear-gradient(135deg, #9370db 0%, #8b008b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 139, 0.4);
}

/* Forms */
.form-container {
    background: linear-gradient(135deg, #fff5f5 0%, #ffb6c1 100%);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
    max-width: 600px;
    margin: 20px 0;
    border: 2px solid #dc143c;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid;
}

.badge-active {
    background: linear-gradient(135deg, #32cd32 0%, #00ff00 100%);
    color: white;
    border-color: #00ff00;
}

.badge-inactive {
    background: linear-gradient(135deg, #ff8c42 0%, #ffa07a 100%);
    color: white;
    border-color: #ff8c42;
}

.badge-blocked {
    background: linear-gradient(135deg, #dc143c 0%, #c41e3a 100%);
    color: white;
    border-color: #c41e3a;
}

.badge-pending {
    background: linear-gradient(135deg, #ff8c42 0%, #ff7f50 100%);
    color: white;
    border-color: #ff7f50;
}

.badge-approved {
    background: linear-gradient(135deg, #32cd32 0%, #00ff00 100%);
    color: white;
    border-color: #00ff00;
}

.badge-rejected {
    background: linear-gradient(135deg, #dc143c 0%, #c41e3a 100%);
    color: white;
    border-color: #c41e3a;
}

/* Dynamic badge types */
.badge-deposit {
    background: linear-gradient(135deg, #4169e1 0%, #1e90ff 100%);
    color: white;
    border-color: #1e90ff;
}

.badge-withdrawal {
    background: linear-gradient(135deg, #ff8c42 0%, #ff7f50 100%);
    color: white;
    border-color: #ff7f50;
}

.badge-bet {
    background: linear-gradient(135deg, #8b008b 0%, #9370db 100%);
    color: white;
    border-color: #9370db;
}

.badge-winning {
    background: linear-gradient(135deg, #32cd32 0%, #00ff00 100%);
    color: white;
    border-color: #00ff00;
}

.badge-bonus {
    background: linear-gradient(135deg, #ff1493 0%, #ff6b9d 100%);
    color: white;
    border-color: #ff6b9d;
}

.badge-adjustment {
    background: linear-gradient(135deg, #ff8c42 0%, #ffa07a 100%);
    color: white;
    border-color: #ff8c42;
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1493 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    border: 2px solid #dc143c;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
}

.form-input, .form-select {
    padding: 10px;
    border: 2px solid #dc143c;
    border-radius: 5px;
    font-size: 14px;
    background: #fff5f5;
    color: #333;
    font-weight: 500;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #ff1493;
    background: white;
    box-shadow: 0 0 8px rgba(255, 20, 147, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(220, 20, 60, 0.5);
    overflow: auto;
}

.modal-content {
    background: linear-gradient(135deg, #fff5f5 0%, #ffb6c1 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.4);
    position: relative;
    border: 3px solid #dc143c;
}

.close {
    color: #dc143c;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: all 0.3s;
}

.close:hover {
    color: #ff1493;
    transform: scale(1.2);
}

/* Tabs */
.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 3px solid #dc143c;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #ff6b9d;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn:hover {
    color: #ff1493;
}

.tab-btn.active {
    color: #ff1493;
    border-bottom-color: #dc143c;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffb6c1 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
    border: 2px solid #dc143c;
}

.game-card h3 {
    margin-bottom: 10px;
    color: #ff1493;
    font-weight: bold;
}

.game-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.markets-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #dc143c;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, #ff8c42 0%, #ffa07a 100%);
    border-radius: 5px;
    margin-bottom: 8px;
    border: 1px solid #dc143c;
    color: white;
    font-weight: 500;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.recent-section {
    margin-top: 30px;
}

.recent-section h2 {
    margin-bottom: 20px;
    color: #ff1493;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.report-section {
    margin-top: 20px;
}

.report-section h2 {
    color: #ff1493;
    font-weight: bold;
}

/* User Details Modal */
.user-details-container {
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
}

.user-details-container h3 {
    color: #ff1493;
    font-weight: bold;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc143c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-details-container h3:first-child {
    margin-top: 0;
}

.user-info-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffb6c1 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #dc143c;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #ff1493;
    font-size: 14px;
}

.info-item span {
    color: #333;
    font-size: 16px;
}

.balance-amount {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #32cd32 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.stats-section {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1493 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #dc143c;
}

.stats-section h3 {
    color: white !important;
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

.stats-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-value {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.transactions-section,
.bets-section,
.pending-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffb6c1 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #dc143c;
}

.table-container-small {
    margin-top: 15px;
    overflow-x: auto;
}

.table-container-small table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.table-container-small table thead {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1493 100%);
}

.table-container-small table th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 13px;
    border-bottom: 2px solid #dc143c;
}

.table-container-small table td {
    padding: 10px;
    border-bottom: 1px solid #ffb6c1;
    font-size: 13px;
    background: #fff5f5;
}

.table-container-small table tbody tr:hover {
    background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%);
}

.table-container-small table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    .games-grid {
        grid-template-columns: 1fr;
    }
}

