/* MIOX CRM - SOFT WHITE GLASSMORPHISM UI */

body.miox-fullscreen-app, .miox-portal-layout {
    /* Very soft, elegant light gradient background */
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f2f5 100%) !important;
    font-family: 'Poppins', sans-serif;
    color: #222222 !important;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

.miox-portal-layout {
    display: block;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 90px;
}

/* Typography (14px Headings, 12px Body, Semibold instead of Bold) */
h1, h2, h3, h4, h5, h6, 
.miox-admin-wrap h1, .miox-admin-wrap h2, .miox-admin-wrap h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important; /* Reduced to Semibold */
    color: #111111 !important;
    margin-top: 0;
    letter-spacing: -0.2px;
}

p, span, label, td, th, div, 
.miox-admin-wrap p, .miox-admin-wrap span, .miox-admin-wrap label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px !important;
    font-weight: 400;
    color: #444444 !important;
    line-height: 1.5;
}

/* Soft Header */
.miox-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Soft Light Glassmorphism Cards */
.miox-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 16px !important;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03) !important; /* Very soft shadow */
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle animation on hover for cards */
.miox-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05) !important;
}

/* Responsive Grid */
.miox-main-content {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.miox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .miox-grid { grid-template-columns: 1fr; }
}

.miox-module { display: none; }
.miox-module.active-module { display: block; animation: smoothFade 0.4s ease; }

/* Bottom Navigation (Glassmorphism & Smaller Text) */
.miox-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.03);
    z-index: 9999;
}

.miox-nav-btn, .miox-logout-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999999 !important;
    font-size: 10px !important; /* Reduced nav text size */
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.miox-nav-btn svg, .miox-logout-btn svg { width: 22px; height: 22px; stroke: #999999; fill: none; transition: 0.3s ease; }
.miox-nav-btn:hover, .miox-nav-btn.active, .miox-logout-btn:hover { color: #111111 !important; font-weight: 600 !important; }
.miox-nav-btn:hover svg, .miox-nav-btn.active svg, .miox-logout-btn:hover svg { stroke: #111111; transform: translateY(-2px); }

/* 10px Rounded Buttons */
.miox-btn-primary, .miox-btn-success, .button-primary, .button {
    background-color: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #111111 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.miox-btn-primary:hover, .miox-btn-success:hover, .button-primary:hover, .button:hover {
    background-color: #444444 !important; 
    border-color: #444444 !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15) !important;
    transform: translateY(-1px);
}

.miox-btn-outline {
    background: rgba(255,255,255,0.4) !important;
    color: #111111 !important;
    border: 1px solid rgba(0,0,0,0.2) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.miox-btn-outline:hover { 
    background: #111111 !important; 
    color: #ffffff !important; 
    border-color: #111111 !important;
}

/* Inputs (Soft style) */
input[type="text"], input[type="date"], input[type="password"], input[type="email"], input[type="number"], textarea, select {
    background: rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    color: #222222 !important;
    width: 100%;
    box-sizing: border-box;
    transition: 0.3s ease;
    font-family: 'Poppins', sans-serif;
}
input:focus, textarea:focus, select:focus { 
    outline: none; 
    border-color: #666666 !important; 
    background: #ffffff !important; 
    box-shadow: 0 0 0 3px rgba(0,0,0,0.03) !important;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.1);
    color: #111111 !important;
    background: rgba(255,255,255,0.5);
    display: inline-block;
}

@keyframes smoothFade { 
    from { opacity: 0; transform: translateY(8px); } 
    to { opacity: 1; transform: translateY(0); } 
}