/* Simplified Data Center Styles */

/* Hero Stats Section */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hero-stats::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgb(255 255 255 / 10%) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 1px solid rgb(0 0 0 / 5%);
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgb(0 0 0 / 12%);
}

.hero-stat-card[data-stat="items"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-stat-card[data-stat="apps"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.hero-stat-card[data-stat="storage"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.hero-stat-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    background: rgb(255 255 255 / 20%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-stat-content {
    flex: 1;
    min-width: 0;
}

.hero-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 8px;
    background: rgb(255 255 255 / 20%);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.hero-stat-trend.up {
    color: #4caf50;
    background: rgb(76 175 80 / 20%);
}

.hero-stat-trend.down {
    color: #f44336;
    background: rgb(244 67 54 / 20%);
}

.hero-stat-subtext {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.hero-stat-progress {
    margin-top: 12px;
    height: 6px;
    background: rgb(255 255 255 / 30%);
    border-radius: 3px;
    overflow: hidden;
}

.hero-stat-progress-bar {
    height: 100%;
    background: rgb(255 255 255 / 80%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Tab Navigation */
.data-tabs {
    display: flex;
    background-color: white;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgb(0 0 0 / 5%);
}

.data-tab {
    flex: 1;
    padding: 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.data-tab:hover {
    background-color: #f9fafb;
    color: #4a6fa5;
}

.data-tab.active {
    color: #4a6fa5;
    background-color: #f0f4f8;
}

.data-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a6fa5, #6b8fc7);
}

.tab-icon {
    font-size: 1.5rem;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fade-in 0.3s ease;
}

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

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Section Title */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin: 32px 0 20px;
}

/* App Cards Grid - responsive columns */
.app-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Optimize for different screen sizes */
@media (min-width: 960px) {
    .app-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1400px) {
    .app-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

@media (min-width: 1920px) {
    .app-cards-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 32px;
    }
}

.app-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

/* Status Indicators */
.app-card[data-status="active"] {
    border-color: #4caf50;
    background: linear-gradient(135deg, #fff 0%, #f1f8e9 100%);
}

.app-card[data-status="stale"] {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff 0%, #fff3e0 100%);
}

.app-card[data-status="inactive"] {
    border-color: #e0e0e0;
    opacity: 0.9;
}

.app-card-status-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
}

.app-card[data-status="active"] .app-card-status-indicator {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    animation: pulse 2s ease-in-out infinite;
}

.app-card[data-status="stale"] .app-card-status-indicator {
    background: linear-gradient(90deg, #ff9800, #ffc107);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
    border-color: #4a6fa5;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.app-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.app-card-icon.sunlight {
    background: linear-gradient(135deg, #f9a825, #fbc02d);
}

.app-card-icon.coffee {
    background: linear-gradient(135deg, #795548, #8d6e63);
}

.app-card-icon.strong {
    background: linear-gradient(135deg, #5c6bc0, #7986cb);
}

.app-card-icon.disc {
    background: linear-gradient(135deg, #2a7d3f, #4caf50);
}

.app-card-icon.tea {
    background: linear-gradient(135deg, #e57373, #ef5350);
}

.app-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.app-card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

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

.app-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.app-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.app-card-meta {
    padding: 12px;
    margin: 12px -8px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    min-height: 36px;
}

.app-last-updated {
    flex: 1;
}

.app-trend {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.app-trend.trend-up {
    color: #4caf50;
}

.app-trend.trend-down {
    color: #f44336;
}

.app-trend.trend-neutral {
    color: #999;
}

.app-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.app-action-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a6fa5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-action-btn:hover {
    background: #4a6fa5;
    color: white;
    border-color: #4a6fa5;
}

/* Quick Actions */
.quick-actions-section {
    margin-top: 40px;
}

.quick-actions-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.quick-action-btn {
    padding: 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quick-action-btn:hover {
    background: #f0f4f8;
    border-color: #4a6fa5;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.5rem;
}

/* Backup Section */
.backup-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.backup-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.backup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
}

.backup-card.danger {
    border-color: #fee;
}

.backup-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.backup-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
}

.backup-card p {
    color: #666;
    margin: 0 0 20px;
}

/* Buttons */
.primary-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4a6fa5, #6b8fc7);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(74 111 165 / 30%);
}

.danger-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef5350, #e57373);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(239 83 80 / 30%);
}

.file-input-label {
    display: inline-block;
    cursor: pointer;
}

/* Settings */
.settings-group {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
}

.settings-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info label {
    display: block;
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
}

.setting-info small {
    color: #666;
    font-size: 0.875rem;
}

/* Toggle Switch */
.toggle-switch {
    width: 48px;
    height: 24px;
    appearance: none;
    background: #ccc;
    border-radius: 24px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch:checked {
    background: #4a6fa5;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}

.toggle-switch:checked::after {
    transform: translateX(24px);
}

/* Storage Info */
.storage-info {
    margin-top: 16px;
}

.storage-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.storage-used {
    height: 100%;
    background: linear-gradient(90deg, #4a6fa5, #6b8fc7);
    transition: width 0.3s ease;
}

.storage-info p {
    font-size: 0.875rem;
    color: #666;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Responsive adjustments */
@media (min-width: 960px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .hero-stats {
        padding: 32px;
        gap: 32px;
    }
    
    .hero-stat-card {
        padding: 32px;
    }
    
    .hero-stat-value {
        font-size: 36px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
    
    .hero-stat-card {
        padding: 20px;
    }
    
    .hero-stat-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .hero-stat-value {
        font-size: 24px;
    }
    
    .data-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-tab {
        min-width: 100px;
        font-size: 0.875rem;
        padding: 12px 8px;
    }
    
    .tab-icon {
        font-size: 1.25rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .app-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .backup-section {
        grid-template-columns: 1fr;
    }
}

/* Remove old mobile menu styles */
.mobile-menu-btn,
.mobile-overlay,
.mobile-close-btn {
    display: none !important;
}

/* Container with reasonable max-width for readability */
.data-center-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.app-showcase {
    padding: 20px 0;
    width: 100%;
}

.app-showcase .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Wide screen optimizations */
@media (min-width: 1200px) {
    .data-center-container {
        padding: 0 40px 40px;
    }
    
    .app-showcase .container {
        padding: 0 40px;
    }
}

@media (min-width: 1600px) {
    .data-center-container {
        max-width: 1600px;
        padding: 0 60px 40px;
    }
    
    .app-showcase .container {
        max-width: 1600px;
        padding: 0 60px;
    }
}

@media (min-width: 1920px) {
    .data-center-container {
        max-width: 1800px;
    }
    
    .app-showcase .container {
        max-width: 1800px;
    }
}