/* Modern Glassmorphism Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Core Palette - Vibrant & Deep */
    --primary: #00f2fe;
    --primary-dark: #4facfe;
    --secondary: #ff0080;
    --secondary-light: #ff8c00;
    --accent: #7928ca;

    /* Glass Tokens */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --backdrop-blur: 12px;

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #1a1a2e;

    /* Layout */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #0f0c29;
    background: linear-gradient(to bottom, #24243e, #302b63, #0f0c29);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.glass-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--primary-dark);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--secondary);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 40px) scale(1.1);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-highlight);
    border-radius: 10px;
}

/* Header */
header {
    background: rgba(15, 12, 41, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.icon-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--glass-highlight);
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 0 15px var(--primary);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #0f0c29;
}

/* Main Layout */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Login Screen */
#login-screen {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--primary));
    animation: pulseIcon 3s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--primary));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px var(--primary));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--primary));
    }
}

#login-screen h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.input-group {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.5rem;
}

input,
select {
    width: 100%;
    padding: 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

select option {
    background: #1a1a2e;
    color: white;
}

.btn-main {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.6);
}

.login-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 600px;
}

.stat-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    backdrop-filter: blur(var(--backdrop-blur));
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

/* Dashboard */
#app-screen {
    display: none;
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Bar */
.status-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.welcome-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
}

.welcome-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.section-title {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Grid Menu */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card-service {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(var(--backdrop-blur));
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-service:hover {
    transform: translateY(-10px);
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card-service:hover .card-icon {
    transform: scale(1.2) rotate(-10deg);
}

.card-label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-sublabel {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    flex-grow: 1;
}

.card-badge {
    align-self: flex-start;
    background: linear-gradient(45deg, var(--secondary), var(--secondary-light));
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(255, 0, 128, 0.4);
}

/* Stats Container */
.stats-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* App View */
#app-view {
    animation: fadeIn 0.5s ease;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.app-header h2 {
    font-size: 2rem;
    margin: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: var(--glass-highlight);
    transform: translateX(-5px);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-5px);
    background: var(--glass-highlight);
}

.app-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.app-card-content {
    padding: 1rem;
}

.app-card h4 {
    margin-bottom: 0.5rem;
    color: white;
}

.app-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-action {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #0f0c29;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Modals - Enhanced Glassmorphism */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 242, 254, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: white;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    animation: slideUpModal 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0.8;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.modal-close:hover {
    background: rgba(255, 0, 128, 0.3);
    border-color: var(--secondary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-icon {
    font-size: 4rem;
    text-align: center;
    margin: 1rem 0;
    filter: drop-shadow(0 0 20px var(--primary));
    animation: pulseIcon 2s infinite;
}

.btn-modal {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    width: calc(100% - 4rem);
    margin: 0 2rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-modal:hover::before {
    left: 100%;
}

.btn-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.6);
}

/* Notification Items */
.notification-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    padding: 1rem;
    margin: 0 1rem;
    border-radius: var(--radius-sm);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.notification-title {
    color: white;
    font-weight: 600;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Profile */
.profile-info {
    border-bottom: 1px solid var(--glass-border);
}

.profile-info h3 {
    color: white;
}

.profile-stat {
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.profile-stat strong {
    color: white;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .blob {
        opacity: 0.4;
    }

    .login-stats {
        grid-template-columns: 1fr;
    }

    .status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }

    .grid-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Stagger Animations */
.card-service {
    opacity: 0;
    animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-service:nth-child(1) {
    animation-delay: 0.1s;
}

.card-service:nth-child(2) {
    animation-delay: 0.15s;
}

.card-service:nth-child(3) {
    animation-delay: 0.2s;
}

.card-service:nth-child(4) {
    animation-delay: 0.25s;
}

.card-service:nth-child(5) {
    animation-delay: 0.3s;
}

.card-service:nth-child(6) {
    animation-delay: 0.35s;
}

.card-service:nth-child(7) {
    animation-delay: 0.4s;
}

.card-service:nth-child(8) {
    animation-delay: 0.45s;
}

.card-service:nth-child(9) {
    animation-delay: 0.5s;
}

.card-service:nth-child(10) {
    animation-delay: 0.55s;
}

.card-service:nth-child(11) {
    animation-delay: 0.6s;
}

.card-service:nth-child(12) {
    animation-delay: 0.65s;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    animation: rippleAnim 1s linear infinite;
}

@keyframes rippleAnim {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

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

    .header-content h1 {
        font-size: 1.2rem;
    }
}