/* =========================================
   GLOBAL CLASS SYSTEM & VARIABLES
   ========================================= */
:root {
    --primary-color: #35abe5;
    --secondary-color: #82b704;
    --accent-dark: #3f484d;
    --accent-light: #ffffff;
    --bg-color: #f4f6f7;
}

body {
    background-color: var(--accent-dark);
    color: var(--accent-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Global Utility Classes */
.g-bg-primary { background-color: var(--primary-color) !important; color: white; }
.g-bg-secondary { background-color: var(--secondary-color) !important; color: white; }
.g-bg-dark { background-color: var(--accent-dark) !important; color: white; }
.g-bg-light { background-color: var(--accent-light) !important; color: var(--accent-dark); }

.g-text-primary { color: var(--primary-color) !important; }
.g-text-secondary { color: var(--secondary-color) !important; }
.g-text-dark { color: var(--accent-dark) !important; }
.g-text-light { color: var(--accent-light) !important; }

/* =========================================
   METRO UI STYLING & ANIMATIONS
   ========================================= */
/* Animation: On Load */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim-load {
    animation: fadeSlideUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Staggered load delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Metro Tiles */
.metro-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 0; /* Metro UI is typically sharp, or slightly rounded. We use 0 for strict Metro */
    height: 100%;
    min-height: 150px;
    text-decoration: none;
}

.metro-tile i {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.metro-tile span.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
}

/* Animation: On Hover */
.metro-tile:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 10;
}
.metro-tile:hover i {
    transform: scale(1.1);
}

/* Forms & Inputs */
.metro-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: white;
    border-radius: 0;
    padding: 10px 15px;
}
.metro-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: white;
    box-shadow: none;
}
.metro-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.metro-btn {
    border-radius: 0;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}
.metro-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Profile Section */
.profile-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    background-color: var(--accent-light);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.status-active { background-color: var(--secondary-color); }
.status-offline { background-color: #dc3545; }

/* Responsive specific adjustments */
@media (max-width: 768px) {
    .metro-tile { min-height: 120px; padding: 1.5rem; }
    .metro-tile i { font-size: 2rem; }
}

/* Layout Helpers */
#app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hide sections initially */
#dashboard-section { display: none; }