/* Main CSS file - Includes dashboard styles */
/* Dashboard Specific Styles */

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

[data-theme="dark"] .quick-actions {
    background: var(--dark);
    border-color: var(--border);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--dark);
}

[data-theme="dark"] .action-btn {
    background: rgba(255,255,255,0.05);
    color: white;
}

.action-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.action-btn i {
    font-size: 2rem;
    color: var(--primary);
}

.action-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Upload Info */
.upload-info {
    margin: 1rem 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-label {
    color: var(--gray);
}

.info-value {
    font-weight: 500;
}

/* Upload Actions */
.upload-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-action {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    background: var(--light);
    border-radius: 5px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s;
}

[data-theme="dark"] .btn-action {
    background: rgba(255,255,255,0.05);
}

.btn-action:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-action.btn-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

[data-theme="dark"] .empty-state h3 {
    color: white;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Analytics Table */
.analytics-table {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

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

.analytics-table th {
    background: var(--light);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

[data-theme="dark"] .analytics-table th {
    background: rgba(255,255,255,0.05);
}

.analytics-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.analytics-table tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stats-row .stat {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

[data-theme="dark"] .stats-row .stat {
    background: rgba(255,255,255,0.05);
}

.stats-row .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stats-row .stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

/* Extend Options */
.extend-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.extend-option {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.extend-option:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.extend-option.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.extend-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.extend-price {
    color: var(--primary);
    font-weight: 600;
}

/* Purchase Summary */
.purchase-summary {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

[data-theme="dark"] .purchase-summary {
    background: rgba(255,255,255,0.05);
}

.purchase-summary div {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.purchase-summary div:last-child {
    margin-bottom: 0;
    color: var(--success);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .extend-options {
        grid-template-columns: 1fr;
    }
    
    .analytics-table {
        font-size: 0.9rem;
    }
    
    .analytics-table th,
    .analytics-table td {
        padding: 0.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Status Colors */
.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-inactive {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray);
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    text-decoration: line-through;
}

/* Odometer Custom Styles */
.odometer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    background: #000;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    min-width: 120px;
    text-align: center;
}

.odometer.green {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.odometer.yellow {
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.odometer.red {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    animation: pulse 1s infinite;
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

[data-theme="dark"] .map-legend {
    background: var(--dark);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.legend-label {
    font-size: 0.9rem;
}
