/* File: css/style.css - Solarlee Corporate UI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0c12;
    color: #eef2ff;
    overflow-x: hidden;
}

/* ----- LOGIN PAGE (cool dynamic) ----- */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 30%, #0b1120, #03060c);
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 460px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 2.5rem;
    border: 1px solid rgba(71, 135, 255, 0.25);
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(71, 135, 255, 0.1);
    padding: 2rem 2rem 2rem 2rem;
    transition: transform 0.3s ease;
}

.brand {
    text-align: center;
    margin-bottom: 2.2rem;
}

.logo-icon {
    font-size: 3rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #2b6ef0, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.brand h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #f0f9ff, #c4e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand p {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1.8rem;
    display: flex;
    align-items: center;
    padding: 0.2rem 1.2rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.input-group i {
    color: #6b7280;
    font-size: 1.1rem;
    margin-right: 0.8rem;
}

.input-group input {
    background: transparent;
    border: none;
    padding: 0.9rem 0;
    width: 100%;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    outline: none;
}

.input-group input::placeholder {
    color: #6c7a9e;
    font-weight: 400;
}

.input-group:focus-within {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.login-btn {
    background: linear-gradient(95deg, #2563eb, #4f46e5);
    border: none;
    border-radius: 2.5rem;
    padding: 0.9rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.6rem;
}

.login-btn:hover {
    background: linear-gradient(95deg, #3b82f6, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 12px 18px -8px #1e40af40;
}

.error-message {
    text-align: center;
    font-size: 0.8rem;
    color: #f87171;
    margin-top: 0.5rem;
    min-height: 2rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.7rem;
    color: #4b5563;
}

.bg-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59,130,246,0.25), rgba(0,0,0,0));
    border-radius: 50%;
    filter: blur(55px);
    z-index: 0;
    bottom: -100px;
    left: -80px;
}

.bg-orb.two {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(139,92,246,0.2), transparent);
    top: -120px;
    right: -80px;
    left: auto;
}

/* ----- DASHBOARD LAYOUT ----- */
.dashboard-body {
    background: #0b0e17;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(12, 16, 26, 0.95);
    backdrop-filter: blur(4px);
    border-right: 1px solid #1e293b;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    font-weight: 700;
    padding-left: 1rem;
    color: #e2e8f0;
}

.sidebar-brand i {
    color: #3b82f6;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    color: #cbd5e1;
    transition: 0.2s;
    text-decoration: none;
    font-weight: 500;
}

.nav-item i {
    width: 1.6rem;
}

.nav-item.active, .nav-item:hover {
    background: #1e293b;
    color: white;
}

.logout-btn {
    margin-top: auto;
    background: transparent;
    border: 1px solid #334155;
    padding: 0.7rem;
    border-radius: 2rem;
    color: #f87171;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #7f1a1a30;
    border-color: #ef4444;
    color: #ffaeae;
}

.main-content {
    flex: 1;
    padding: 1.8rem 2.2rem;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.2rem;
    background: #11182750;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    backdrop-filter: blur(2px);
}

.greeting i, .greeting span {
    font-size: 0.95rem;
    color: #bac8e0;
}

.date-badge {
    background: #1e293b;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.6rem;
}

.dashboard-card {
    background: #111827cc;
    backdrop-filter: blur(8px);
    border-radius: 1.8rem;
    border: 1px solid #2d3a5e;
    overflow: hidden;
    transition: transform 0.1s ease;
}

.wide-card {
    grid-column: span 1;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #1e2a44;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #0f172a60;
}

.card-header i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: auto;
}

.badge {
    background: #3b82f6;
    border-radius: 3rem;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.card-body {
    padding: 1.2rem 1.5rem;
}

.approval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding: 0.9rem 0;
}

.approval-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.approval-info p {
    font-size: 0.7rem;
    color: #94a3b8;
}

.approval-action {
    background: #facc1520;
    padding: 0.2rem 0.7rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    color: #facc15;
}

.att-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.stat-label {
    color: #9ca8c0;
}

.stat-value {
    font-weight: 600;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding: 0.2rem 0;
}

.stat-row strong {
    color: #60a5fa;
}

.placeholder-loading {
    color: #6c7a9e;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
}

@media (max-width: 780px) {
    .app-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 1rem;
    }
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .logout-btn {
        margin: 0;
    }
}