@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

/* ==========================================================================
   GLIDE SYSTEM VARIABLES
   ========================================================================== */
* {
    --headingfont: 'Google Sans', sans-serif;
    --textfont: 'Figtree', sans-serif;

    --primary: #0066ff;
    --primary-hover: #0052cc;
    --primary-light: #e6f0ff;
    --bg-main: #f9fafb;
    --border-color: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    font-family: var(--textfont);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 0 24px;
    height: 64px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    color: var(--primary);
    font-size: 26px !important;
    user-select: none;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--headingfont);
    color: var(--text-main);
    letter-spacing: -0.3px;
}

/* ==========================================================================
   TYPOGRAPHY & CONTENT HEADERS
   ========================================================================== */
h1 {
    margin: 0;
    font-family: var(--headingfont);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

h2 {
    margin-top: 0;
    margin-bottom: 32px;
    font-family: var(--headingfont);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-main);
    text-align: center;
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

/* ==========================================================================
   LAYOUT & GRID CONTAINERS
   ========================================================================== */
.page {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 24px auto;
    background: white;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.clock-screen-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 24px;
}

.page.clock-card {
    width: 100%;
    max-width: 820px; 
    background: white;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.hub-btn-link {
    text-decoration: none !important;
    width: 100%;
    display: block;
}

/* ==========================================================================
   INTERACTIVE BUTTON ACTIONS
   ========================================================================== */
button {
    cursor: pointer;
    border-radius: var(--radius-md);
    font-family: var(--textfont);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
}

.clock-submit-btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    background: var(--primary);
    color: white;
    border: none;
    padding: 24px 20px;
    text-align: center;
}

.clock-submit-btn:hover {
    background: var(--primary-hover);
}

.clock-submit-btn .material-symbols-rounded {
    font-size: 44px !important; 
    margin-bottom: 12px;
    display: block;
}

/* Internal text styling structure */
.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.btn-title {
    font-family: var(--headingfont);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: block;
}

.btn-caption {
    font-family: var(--textfont);
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
    display: block;
}

/* Secondary Action Variant Modifier Rules */
.secondary-button {
    background: #f3f4f6;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.secondary-button:hover {
    background: #e5e7eb;
}

.secondary-button .btn-caption {
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 740px) {
    .hub-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .clock-submit-btn {
        aspect-ratio: auto;
        flex-direction: row; 
        align-items: center;
        justify-content: flex-start; 
        padding: 20px;
        text-align: left;
    }
    .clock-submit-btn .material-symbols-rounded {
        margin-bottom: 0;
        margin-right: 16px;
        font-size: 36px !important;
    }
    .btn-text-group {
        align-items: flex-start; 
    }
    .btn-title {
        margin-bottom: 2px;
    }
    .page.clock-card {
        padding: 32px 16px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .page {
        width: calc(100% - 24px);
        padding: 20px 16px;
    }
    .top-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}