/* Main Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
}

/* Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Gradient Backgrounds */
.gradient-bg {
    background: var(--primary-gradient) !important;
    min-height: 100vh;
}

.gradient-nav {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* Stats Cards */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: none;
    margin-bottom: 20px;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card.today {
    border-top: 4px solid #667eea;
}

.stats-card.yesterday {
    border-top: 4px solid #f5576c;
}

.stats-card.month {
    border-top: 4px solid #4cd964;
}

.stats-card.alltime {
    border-top: 4px solid #ff9500;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stats-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-item span {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 5px 0 0;
    color: #333;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

/* Forms */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* Cards */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    background: #fff;
    border-bottom: 2px solid #f8f9fa;
    padding: 20px;
}

/* Offer Cards */
.offer-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    height: 100%;
    border: 1px solid #e9ecef;
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Update Cards */
.update-card {
    height: 100%;
    transition: transform 0.3s;
}

.update-card:hover {
    transform: translateY(-10px);
}

.update-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.update-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Spreadsheet Cards */
.sheet-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s;
}

.sheet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Tab Navigation */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 12px 20px;
    margin: 0 5px;
}

.nav-tabs .nav-link:hover {
    color: #667eea;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    background: transparent;
}

/* Sidebar Navigation */
.nav.flex-column .nav-link {
    padding: 15px 20px;
    margin: 5px 0;
    border-radius: 10px;
    color: #555;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.nav.flex-column .nav-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(5px);
}

.nav.flex-column .nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Input group for copy */
.copy-input-group {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
}

.copy-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.copy-input-group input {
    border: none;
    background: #f8f9fa;
    font-size: 13px;
    padding: 8px 12px;
}

.copy-input-group button {
    border-left: 1px solid #e9ecef;
    padding: 8px 12px;
    background: white;
    transition: all 0.2s;
}

.copy-input-group button:hover {
    background: #e9ecef;
}

.copy-input-group .btn:active {
    transform: scale(0.95);
}

/* Badge Styles */
.badge {
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 600;
    font-size: 12px;
}

.badge-success {
    background: linear-gradient(135deg, #4cd964 0%, #5ac8fa 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ff9500 0%, #ff5e3a 100%);
    color: white;
}

/* Alert Customization */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #667eea;
    color: #2c3e50;
}

/* Modal Customization */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.modal-footer {
    border-top: 2px solid #e9ecef;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6840a0 100%);
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-content {
        grid-template-columns: 1fr;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .update-card {
        margin-bottom: 20px;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}