/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0f172a; /* Slate 900 */
    color: #e2e8f0; /* Slate 200 */
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========== NAVBAR ========== */
.pro-navbar {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid #1e293b;
    background: #0f172a;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: white;
}

.version-tag {
    background: #2563eb;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-text {
    font-size: 0.9rem;
    color: #94a3b8;
}

.divider {
    width: 1px;
    height: 20px;
    background: #334155;
}

/* Buttons */
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #ef4444;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hidden {
    display: none !important;
}

#user-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========== WORKSPACE ========== */
.workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    animation: fadeIn 0.5s ease-out;
}

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

/* ========== FOCUS SECTION (Search & Clock) ========== */
.focus-section {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.hero-clock {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.sub-greeting {
    color: #64748b;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Search Bar */
.search-container {
    position: relative;
    width: 100%;
}

.input-group {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-icon {
    color: #64748b;
    margin-right: 15px;
}

#search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

.kbd-shortcut {
    background: #334155;
    border: none;
    color: #94a3b8;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.dropdown-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-top: 8px;
    z-index: 100;
    display: none;
    overflow: hidden;
}

.suggestion {
    display: block;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px solid #334155;
}

.suggestion:hover {
    background: #334155;
}

/* ========== APP SECTION (Grid) ========== */
.app-section {
    width: 100%;
    max-width: 900px;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.grid-header h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
}

.nav-arrow {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.nav-arrow:hover {
    background: #334155;
    color: white;
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: default;
}

.slider-viewport {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    width: 200%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-page {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 15px;
    padding: 0 5px;
}

.app-tile {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, border-color 0.2s;
}

.app-tile:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    background: #252f45;
}

.icon-box {
    font-size: 1.5rem;
}

.app-tile span {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== FOOTER ========== */
.footer-links {
    display: flex;
    gap: 15px;
    color: #475569;
    font-size: 0.9rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #3b82f6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .app-page {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-clock {
        font-size: 3.5rem;
    }
    .pro-navbar {
        padding: 0 20px;
    }
}