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

:root {
    --primary-blue: #2563eb;
    --primary-purple: #7c3aed;
    --primary-green: #059669;
    --bg-gradient: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(51, 65, 85, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Background shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    top: -100px;
    left: -50px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--primary-purple);
    bottom: 10%;
    right: -50px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Header & Toggle */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.a-one-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-width: 350px;
    margin-top: 5px;
}

.a-one-divider .line {
    flex: 1;
    height: 1px;
    position: relative;
}

.a-one-divider .left-line {
    background: #dc2626;
}

.a-one-divider .left-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #dc2626;
    border-radius: 50%;
}

.a-one-divider .right-line {
    background: #2563eb;
}

.a-one-divider .right-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #2563eb;
    border-radius: 50%;
}

.a-one-badge {
    background: linear-gradient(90deg, #dc2626, #1e3a8a);
    color: white;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.logo-container {
    text-align: center;
}

.logo-container img {
    height: 115px;
    object-fit: contain;
}

.logo-subtext {
    color: #1e3a8a;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: -2px;
}

/* Typography */
.welcome-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.welcome-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #1e3a8a;
}

.welcome-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1250px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-accent);
}

.icon-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-accent-soft) 0%, transparent 70%);
    z-index: -1;
}

.card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* Specific Card Themes */
.card-dashboard { --card-accent: var(--primary-blue); --card-accent-soft: rgba(37, 99, 235, 0.1); }
.card-portal { --card-accent: var(--primary-purple); --card-accent-soft: rgba(124, 58, 237, 0.1); }
.card-hr { --card-accent: var(--primary-green); --card-accent-soft: rgba(5, 150, 105, 0.1); }

.card-dashboard .btn { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.card-portal .btn { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.card-hr .btn { background: linear-gradient(135deg, #10b981, #059669); }

.card-dashboard h2 { color: var(--primary-blue); }
.card-portal h2 { color: var(--primary-purple); }
.card-hr h2 { color: var(--primary-green); }

/* Footer */
.footer {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .welcome-section h1 { font-size: 2.2rem; }
    .cards-grid { 
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .theme-toggle { top: 1rem; right: 1rem; }
}
