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


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


:root {
    --background: #080b14;
    --card: rgba(18, 23, 38, 0.78);
    --card-hover: rgba(25, 31, 50, 0.95);

    --border: rgba(255, 255, 255, 0.08);

    --text: #f5f7ff;
    --muted: #9299ad;

    --primary: #6c63ff;
    --primary-light: #8b85ff;

    --green: #35d39a;
}


body {
    min-height: 100vh;

    font-family: "Inter", sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at top left,
            rgba(108, 99, 255, 0.14),
            transparent 35%
        ),
        var(--background);

    overflow-x: hidden;
}


/* BACKGROUND */

.background-glow {
    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(120px);

    opacity: 0.08;

    pointer-events: none;

    z-index: -1;
}


.glow-one {
    background: #6c63ff;

    top: -200px;
    left: -150px;
}


.glow-two {
    background: #00d4ff;

    right: -200px;
    bottom: -200px;
}


/* MAIN */

.container {
    width: min(1150px, 92%);

    margin: 0 auto;

    padding: 70px 0 40px;
}


/* HEADER */

.hero {
    display: flex;

    align-items: center;

    gap: 22px;

    margin-bottom: 50px;
}


.logo {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    font-size: 28px;

    background:
        linear-gradient(
            135deg,
            #6c63ff,
            #8c5cff
        );

    box-shadow:
        0 15px 40px rgba(108, 99, 255, 0.3);
}


.eyebrow {
    color: var(--primary-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 7px;
}


.hero h1 {
    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.05;

    letter-spacing: -2px;
}


.subtitle {
    color: var(--muted);

    margin-top: 10px;

    font-size: 15px;
}


/* TOOLBAR */

.toolbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


.search-wrapper {
    width: 360px;

    height: 48px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 16px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: rgba(255,255,255,0.035);

    transition: 0.2s;
}


.search-wrapper:focus-within {
    border-color: rgba(108, 99, 255, 0.7);

    box-shadow:
        0 0 0 4px rgba(108, 99, 255, 0.08);
}


.search-wrapper span {
    color: var(--muted);

    font-size: 23px;
}


.search-wrapper input {
    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: white;

    font-family: inherit;

    font-size: 14px;
}


.search-wrapper input::placeholder {
    color: #646b7d;
}


.app-count {
    color: var(--muted);

    font-size: 14px;
}


.app-count span {
    color: white;

    font-weight: 700;
}


/* GRID */

.app-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* APP CARD */

.app-card {
    min-height: 190px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 23px;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: var(--card);

    backdrop-filter: blur(20px);

    transition:
        transform 0.25s,
        background 0.25s,
        border-color 0.25s;

    animation: cardIn 0.45s ease both;
}


.app-card:hover {
    transform: translateY(-4px);

    background: var(--card-hover);

    border-color:
        rgba(255,255,255,0.14);
}


@keyframes cardIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

}


/* APP ICON */

.app-icon {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    border-radius: 14px;

    font-size: 22px;

    margin-bottom: 18px;
}


.blue {
    background: rgba(59, 130, 246, 0.14);
}


.purple {
    background: rgba(168, 85, 247, 0.14);
}


.green {
    background: rgba(52, 211, 153, 0.14);
}


.orange {
    background: rgba(251, 146, 60, 0.14);
}


/* APP INFO */

.app-info h2 {
    font-size: 18px;

    margin-bottom: 6px;
}


.app-info p {
    color: var(--muted);

    font-size: 13px;
}


.file-name {
    display: inline-block;

    margin-top: 13px;

    padding: 5px 9px;

    border-radius: 7px;

    background: rgba(255,255,255,0.045);

    color: #747c91;

    font-family: monospace;

    font-size: 11px;
}


/* ACTIONS */

.card-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 20px;
}


.open-btn {
    flex: 1;

    height: 40px;

    border: none;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.open-btn:hover {
    background: var(--primary-light);

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(108,99,255,0.25);
}


.link-btn {
    width: 40px;
    height: 40px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: rgba(255,255,255,0.04);

    color: white;

    cursor: pointer;

    transition: 0.2s;
}


.link-btn:hover {
    background: rgba(255,255,255,0.1);

    border-color:
        rgba(255,255,255,0.2);
}


/* EMPTY STATE */

.empty-state {
    display: none;

    text-align: center;

    padding: 80px 20px;

    color: var(--muted);
}


.empty-state.visible {
    display: block;
}


.empty-state div {
    font-size: 40px;

    margin-bottom: 15px;
}


.empty-state h2 {
    color: white;

    margin-bottom: 7px;
}


/* MODAL */

.modal-overlay {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,0.72);

    backdrop-filter: blur(8px);

    opacity: 0;

    visibility: hidden;

    transition: 0.25s;

    z-index: 100;
}


.modal-overlay.active {
    opacity: 1;

    visibility: visible;
}


.modal {
    position: relative;

    width: min(440px, 100%);

    padding: 34px;

    border: 1px solid rgba(255,255,255,0.1);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #171c2e,
            #0e1220
        );

    box-shadow:
        0 30px 100px rgba(0,0,0,0.5);

    transform:
        translateY(15px)
        scale(0.97);

    transition: 0.25s;
}


.modal-overlay.active .modal {
    transform:
        translateY(0)
        scale(1);
}


.close-modal {
    position: absolute;

    right: 18px;
    top: 18px;

    width: 34px;
    height: 34px;

    border: none;

    border-radius: 9px;

    background: rgba(255,255,255,0.05);

    color: #9ca3b5;

    font-size: 22px;

    cursor: pointer;
}


.modal-icon {
    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    border-radius: 16px;

    background: rgba(108,99,255,0.14);

    font-size: 25px;

    margin-bottom: 20px;
}


.modal-label {
    color: var(--primary-light);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 8px;
}


.modal h2 {
    font-size: 24px;

    letter-spacing: -0.6px;

    margin-bottom: 9px;
}


.modal > p:not(.modal-label) {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}


.modal-file {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 20px;

    padding: 12px 14px;

    border-radius: 10px;

    background: rgba(255,255,255,0.04);

    color: #c4c9d7;

    font-family: monospace;

    font-size: 12px;
}


.modal-actions {
    display: flex;

    gap: 10px;

    margin-top: 22px;
}


.cancel-btn,
.confirm-btn {
    flex: 1;

    height: 44px;

    border-radius: 11px;

    font-family: inherit;

    font-weight: 600;

    cursor: pointer;
}


.cancel-btn {
    border: 1px solid var(--border);

    background: rgba(255,255,255,0.04);

    color: #aeb4c4;
}


.confirm-btn {
    border: none;

    background: var(--primary);

    color: white;
}


.confirm-btn:hover {
    background: var(--primary-light);
}


/* TOAST */

.toast {
    position: fixed;

    right: 25px;
    bottom: 25px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px 18px;

    border: 1px solid rgba(53,211,154,0.2);

    border-radius: 13px;

    background: #121927;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.35);

    transform:
        translateY(30px);

    opacity: 0;

    pointer-events: none;

    transition: 0.3s;

    z-index: 200;
}


.toast.show {
    opacity: 1;

    transform: translateY(0);
}


.toast-icon {
    width: 28px;
    height: 28px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: rgba(53,211,154,0.14);

    color: var(--green);

    font-weight: 800;
}


.toast strong {
    display: block;

    font-size: 13px;
}


.toast small {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 2px;
}


/* FOOTER */

footer {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin-top: 45px;

    color: #555d70;

    font-size: 11px;
}


/* MOBILE */

@media (max-width: 700px) {

    .container {
        padding-top: 40px;
    }

    .hero {
        align-items: flex-start;

        margin-bottom: 35px;
    }

    .logo {
        width: 52px;
        height: 52px;

        flex-shrink: 0;
    }

    .toolbar {
        align-items: stretch;

        flex-direction: column;
    }

    .search-wrapper {
        width: 100%;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 28px 22px;
    }

}
