/**
 * App-Inspired Design System - Motoristi.EU
 * Based on Android app UI/UX
 * Consistent dark theme with orange accents
 */

:root {
    /* Colors matching Android app */
    --app-bg-dark: #1a1a1a;
    --app-card-bg: #2a2a2a;
    --app-card-bg-hover: #333333;
    --app-orange: #FF6B35;
    --app-orange-dark: #E55A2B;
    --app-text-primary: #FFFFFF;
    --app-text-secondary: #999999;
    --app-text-tertiary: #666666;
    --app-border: #3a3a3a;
    
    /* Spacing from app */
    --app-space-xs: 8px;
    --app-space-sm: 12px;
    --app-space-md: 16px;
    --app-space-lg: 24px;
    --app-space-xl: 32px;
    
    /* Border radius from app */
    --app-radius-sm: 8px;
    --app-radius-md: 12px;
    --app-radius-lg: 16px;
    --app-radius-full: 50px;
}

/* ==== APP-STYLE CARDS ==== */
.app-card {
    background: var(--app-card-bg);
    border-radius: var(--app-radius-md);
    padding: var(--app-space-lg);
    border: 1px solid var(--app-border);
    transition: all 0.3s ease;
}

.app-card:hover {
    background: var(--app-card-bg-hover);
    border-color: var(--app-orange);
}

.app-card-interactive {
    cursor: pointer;
}

.app-card-interactive:active {
    transform: scale(0.98);
}

/* ==== APP-STYLE LIST ITEMS ==== */
.app-list-item {
    display: flex;
    align-items: center;
    gap: var(--app-space-md);
    background: var(--app-card-bg);
    padding: var(--app-space-md) var(--app-space-lg);
    border-radius: var(--app-radius-md);
    border: 1px solid var(--app-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-list-item:hover {
    background: var(--app-card-bg-hover);
    border-color: var(--app-orange);
}

.app-list-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--app-radius-sm);
    color: var(--app-orange);
    font-size: 24px;
    flex-shrink: 0;
}

.app-list-item-content {
    flex: 1;
}

.app-list-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--app-text-primary);
    margin: 0 0 4px 0;
}

.app-list-item-subtitle {
    font-size: 14px;
    color: var(--app-text-secondary);
    margin: 0;
}

.app-list-item-arrow {
    color: var(--app-text-tertiary);
    font-size: 20px;
}

/* ==== APP-STYLE STATS DISPLAY ==== */
.app-stats-container {
    display: flex;
    gap: var(--app-space-lg);
    justify-content: space-around;
    padding: var(--app-space-lg);
    background: var(--app-card-bg);
    border-radius: var(--app-radius-md);
    border: 1px solid var(--app-border);
}

.app-stat {
    text-align: center;
}

.app-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--app-orange);
    line-height: 1;
    margin-bottom: 8px;
}

.app-stat-label {
    display: block;
    font-size: 14px;
    color: var(--app-text-secondary);
    text-transform: capitalize;
}

/* ==== APP-STYLE BUTTONS ==== */
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--app-space-xs);
    padding: var(--app-space-sm) var(--app-space-lg);
    background: var(--app-orange);
    color: white;
    border: none;
    border-radius: var(--app-radius-full);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.app-btn:hover {
    background: var(--app-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.app-btn:active {
    transform: translateY(0);
}

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

.app-btn-secondary:hover {
    background: var(--app-card-bg);
    border-color: var(--app-orange);
}

/* ==== APP-STYLE TABS ==== */
.app-tabs {
    display: flex;
    gap: var(--app-space-xs);
    background: var(--app-card-bg);
    padding: var(--app-space-xs);
    border-radius: var(--app-radius-md);
    border: 1px solid var(--app-border);
}

.app-tab {
    flex: 1;
    padding: var(--app-space-sm) var(--app-space-md);
    background: transparent;
    border: none;
    border-radius: var(--app-radius-sm);
    color: var(--app-text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-tab:hover {
    color: var(--app-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.app-tab.active {
    background: var(--app-orange);
    color: white;
}

/* ==== APP-STYLE SECTION HEADERS ==== */
.app-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--app-space-md);
}

.app-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--app-orange);
    margin: 0;
}

.app-section-action {
    font-size: 14px;
    color: var(--app-orange);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.app-section-action:hover {
    opacity: 0.8;
}

/* ==== APP-STYLE TOGGLE SWITCH ==== */
.app-toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.app-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.app-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--app-border);
    transition: 0.3s;
    border-radius: 32px;
}

.app-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.app-toggle input:checked + .app-toggle-slider {
    background-color: var(--app-orange);
}

.app-toggle input:checked + .app-toggle-slider:before {
    transform: translateX(24px);
}

/* ==== APP-STYLE BADGE ==== */
.app-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--app-orange);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ==== APP-STYLE RECENT ACTIVITY ==== */
.app-activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--app-space-md);
    padding: var(--app-space-md);
    background: var(--app-card-bg);
    border-radius: var(--app-radius-md);
    border: 1px solid var(--app-border);
    margin-bottom: var(--app-space-sm);
}

.app-activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--app-radius-sm);
    color: var(--app-orange);
    font-size: 20px;
    flex-shrink: 0;
}

.app-activity-content {
    flex: 1;
}

.app-activity-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--app-text-primary);
    margin: 0 0 4px 0;
}

.app-activity-time {
    font-size: 13px;
    color: var(--app-text-secondary);
    margin: 0;
}

.app-activity-meta {
    font-size: 14px;
    font-weight: 600;
    color: var(--app-orange);
}

/* ==== APP-STYLE BOTTOM NAV ==== */
.app-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--app-card-bg);
    border-top: 1px solid var(--app-border);
    padding: var(--app-space-sm) 0;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
}

.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--app-space-xs);
    color: var(--app-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--app-radius-sm);
    min-width: 64px;
}

.app-nav-item:hover {
    color: var(--app-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.app-nav-item.active {
    color: var(--app-orange);
}

.app-nav-icon {
    font-size: 24px;
}

.app-nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* ==== APP-STYLE PROFILE CARD ==== */
.app-profile-card {
    background: var(--app-card-bg);
    border-radius: var(--app-radius-md);
    padding: var(--app-space-lg);
    border: 1px solid var(--app-border);
    text-align: center;
}

.app-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--app-orange), #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto var(--app-space-md);
}

.app-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--app-text-primary);
    margin: 0 0 4px 0;
}

.app-profile-username {
    font-size: 14px;
    color: var(--app-text-secondary);
    margin: 0 0 var(--app-space-md) 0;
}

/* ==== RESPONSIVE ADJUSTMENTS ==== */
@media (max-width: 768px) {
    .app-stats-container {
        gap: var(--app-space-md);
    }
    
    .app-stat-value {
        font-size: 24px;
    }
    
    .app-list-item {
        padding: var(--app-space-sm) var(--app-space-md);
    }
    
    .app-list-item-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .app-card {
        padding: var(--app-space-md);
    }
    
    .app-stats-container {
        flex-direction: column;
        gap: var(--app-space-md);
    }
    
    .app-stat {
        width: 100%;
        display: flex;
        align-items: center;
        gap: var(--app-space-md);
    }
    
    .app-stat-value {
        font-size: 28px;
    }
}
