@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a9adc1;
    --accent-gradient: linear-gradient(135deg, #6366f1, #a855f7);
    --accent-color: #6366f1;
    --error-color: #ef4444;
    --success-color: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow Blobs */
.glow-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: moveBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    top: -50px;
    left: -50px;
    animation-duration: 25s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #a855f7;
    bottom: -100px;
    right: -100px;
    animation-duration: 30s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: 40%;
    right: 20%;
    animation-duration: 20s;
}

@keyframes moveBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 50px) scale(1.2);
    }
    100% {
        transform: translate(-40px, 80px) scale(0.9);
    }
}

/* Glassmorphism Card Container */
.glass-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.glass-container:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.logo-wrapper h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-wrapper p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 8px;
}

/* Forms and Inputs */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.btn-submit {
    width: 100%;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    padding: 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

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

/* Alert Boxes */
.alert {
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    display: none;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    word-break: break-all;
}

.alert-success a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

/* Dashboard Secured Experience */
.dashboard-layout {
    max-width: 800px;
    width: 90%;
}

.tenant-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.tenant-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid var(--card-border);
}

.tenant-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.tenant-title p {
    color: var(--text-secondary);
    font-size: 14px;
}

.user-profile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.profile-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    font-size: 14px;
}

.info-label {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.info-value {
    font-weight: 500;
    color: var(--text-primary);
}

.content-section {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 15px;
}

.content-section h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.content-section p {
    margin-bottom: 16px;
}

.logout-container {
    text-align: right;
    margin-top: 30px;
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--card-border);
    padding: 10px 20px;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    border-color: var(--error-color);
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.05);
}

/* Payroll Calculator Styling */
.calculator-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
}

.calculator-section h3 {
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.panel-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding-top: 10px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.results-panel {
    margin-top: 30px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.results-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.results-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 15px;
}

.results-row:last-child {
    border-bottom: none;
}

.results-row.total {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
    margin-top: 8px;
    color: var(--text-primary);
}

.results-value {
    font-weight: 600;
    color: var(--text-primary);
}

.results-value.negative {
    color: #f87171;
}

.results-value.net {
    color: var(--success-color);
    font-size: 20px;
}

.toggle-details-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.toggle-details-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.annual-details {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

