/* ============================================
   SHARED STYLES - Reset, Base, Navbar
   Used by: timeattendance_options.html, page.css dependents
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    min-height: 100vh;
}

/* ============================================
   NAVBAR
   Used by: All pages using page.css
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.navbar .logo {
    display: flex;
    justify-content: space-between;
    width: 99%;
    align-items: center;
}

.navbar .logo a {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    width: 160px;
    height: auto;
}

/* ============================================
   BACK BUTTON
   Used by: timeattendance_options.html
   ============================================ */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.back-btn:hover {
    color: #295097;
    border-color: #bfdbfe;
    background: #f0f7ff;
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(41, 80, 151, 0.1);
}

.back-btn svg {
    transition: transform 0.2s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* ============================================
   PAGE HEADER
   Used by: timeattendance_options.html
   ============================================ */
.page-header {
    margin-top: 64px;
    padding: 32px 40px 0;
}

.page-title {
    margin-top: 20px;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.page-title p {
    font-size: 15px;
    color: #64748b;
    margin-top: 6px;
}

/* ============================================
   CONTENT HEADER (legacy)
   Used by: pages that still use .content-header .ttl
   ============================================ */
.content-header {
    margin-top: 10px;
}

.content-header a {
    text-decoration: none;
    display: inline-block;
}

.content-header .ttl {
    display: flex;
    align-items: end;
    grid-gap: 6px;
}

.content-header h1 {
    font-size: 16px !important;
    color: #666666;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* ============================================
   HERO SECTION
   Used by: pages with hero layouts
   ============================================ */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 32px;
    gap: 32px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span.navyblue_bg {
    color: #215097;
}

.hero p {
    color: #6b7280;
    margin-bottom: 25px;
}

.btn {
    background: #295097;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    line-height: 32px;
    height: 32px;
    min-width: 90px;
    text-align: center;
}

.hero-img {
    min-width: 500px;
    text-align: center;
}

.hero-img img {
    width: 350px;
}

.c_title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 16px;
}

/* ============================================
   SECTION & PRODUCTS GRID
   Used by: pages with product listings
   ============================================ */
.section {
    padding: 32px 32px;
}

.section h2 {
    margin-bottom: 10px;
}

.section h2:before {
    content: "";
    border-left: 4px solid #295097;
    padding-left: 10px;
}

.section p {
    color: #6b7280;
    margin-bottom: 20px;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 32px;
}

.products .product-card {
    text-decoration: none;
    min-height: 75px;
    padding: 16px 16px;
    display: flex;
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    box-shadow: rgb(205 205 205 / 25%) 0px 6px 4px;
    transition: all 0.3s;
}

.products .product-card:hover {
    background-color: #fdfeff;
    border: 1px solid #b3b3b3;
    box-shadow: none;
}

.product {
    display: flex;
    gap: 16px;
}

.product h4 {
    margin-bottom: 6px;
    color: #333;
}

.product p {
    font-size: 14px;
    margin: 0;
    line-height: 24px;
}

/* ============================================
   CARDS SECTION
   Used by: timeattendance_options.html
   ============================================ */
.cards-section {
    padding: 28px 40px 48px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ============================================
   PLATFORM CARDS
   Used by: timeattendance_options.html
   ============================================ */
.platform-card {
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 260px;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 16px;
}

.platform-card:hover {
    transform: translateY(-4px);
}

.platform-card:hover::before {
    opacity: 1;
}

/* Mobile Card */
.card-mobile {
    background: linear-gradient(145deg, #065f46 0%, #047857 50%, #059669 100%);
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.2), 0 1px 4px rgba(0, 0, 0, 0.05);
}

.card-mobile::before {
    background: linear-gradient(145deg, #047857 0%, #059669 50%, #10b981 100%);
}

.card-mobile:hover {
    box-shadow: 0 12px 36px rgba(6, 95, 70, 0.3), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Web Card */
.card-web {
    background: linear-gradient(145deg, #1e3a5f 0%, #295097 50%, #3b5fb5 100%);
    box-shadow: 0 4px 20px rgba(41, 80, 151, 0.2), 0 1px 4px rgba(0, 0, 0, 0.05);
}

.card-web::before {
    background: linear-gradient(145deg, #295097 0%, #3b5fb5 50%, #5b7fd6 100%);
}

.card-web:hover {
    box-shadow: 0 12px 36px rgba(41, 80, 151, 0.3), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card Icon */
.card-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;

}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.platform-card:hover .card-icon {
    transform: scale(1.08);
}

.card-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.card-icon svg {
    width: 36px;
    height: 36px;
}

/* Card Text */
.platform-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.platform-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Card Arrow */
.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.platform-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Decorative Circles */
.card-decor {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.card-decor-1 {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
}

.card-decor-2 {
    width: 120px;
    height: 120px;
    bottom: -30px;
    right: 60px;
}

/* ============================================
   OPTIONS PRODUCTS (legacy)
   Used by: pages still using old options layout
   ============================================ */
.options_products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 32px;
}

.options_products .product-card {
    text-decoration: none;
    min-height: 75px;
    padding: 16px 16px;
    display: flex;
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    box-shadow: rgb(205 205 205 / 25%) 0px 6px 4px;
    transition: all 0.3s;
}

.options_products .product-card:hover {
    background-color: #fdfeff;
    border: 1px solid #b3b3b3;
    box-shadow: none;
}

.options_products .product-card.mobile_bg {
    background: #3a5248;
    color: #ffffff;
}

.options_products .product-card.web_bg {
    background: #38385d;
    color: #ffffff;
}

.options_product {
    display: flex;
    gap: 16px;
    flex-direction: column;
    text-align: center;
}

.options_product h4 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 24px;
}

.options_product p {
    font-size: 14px;
    margin: 0;
    line-height: 24px;
    color: #fff;
    margin-bottom: 8px;
}

/* ============================================
   UTILITY CLASSES
   Used by: Various pages
   ============================================ */
.icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #e8f0ff;
}

.grey_bg {
    background-color: #f8fafc;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 800px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .page-header,
    .cards-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .page-title h1 {
        font-size: 24px;
    }

    .platform-card {
        min-height: auto;
    }
}

@media (max-width: 749px) {

    .products,
    .options_products {
        grid-template-columns: 1fr !important;
    }

    .hero-img {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 1130px) and (min-width: 750px) {

    .products,
    .options_products {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media only screen and (max-width: 1000px) {
    .hero {
        flex-direction: column !important;
        align-items: center !important;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {

    .page-header,
    .cards-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar {
        padding: 0 16px;
    }

    .platform-card {
        padding: 24px;
    }

    .platform-card h3 {
        font-size: 20px;
    }
}