/* =========================================================================
   FILE: assets/css/style.css
   DESCRIPTION: Masterstylesheet for iSerial A.i.O (Responsive & Pure CSS Logo)
   ========================================================================= */

/* Base global reset for padding and margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Root Color Variables for theme customization */
:root {
    --bg-dark: #0f172a;      /* Dark slate background */
    --bg-card: #1e293b;      /* Card and container color */
    --accent-blue: #3b82f6;  /* Primary brand color */
    --accent-cyan: #06b6d4;  /* Logo secondary cyan color */
    --accent-hover: #2563eb; /* Hover state color */
    --text-main: #f8fafc;    /* High contrast text */
    --text-muted: #94a3b8;   /* Low contrast text */
    --border-color: #334155; /* Neutral container borders */
}

/* Set overall page defaults */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Standardized links styling */
a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================================
   PURE CSS LOGO STYLING (iSerial A.i.O)
   ========================================================================= */
.brand-logo {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    user-select: none;
}
/* Icon container built completely with CSS geometry */
.brand-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 8px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
    position: relative;
}
/* Geometric accent inside pure CSS logo */
.brand-logo .logo-icon::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 3px;
    transform: rotate(45deg);
}
/* Logo typography rendering */
.brand-logo .text-white { color: #ffffff; }
.brand-logo .text-gradient {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================================
   LANDING PAGE & NAVBAR STYLES
   ========================================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-buttons {
    display: flex;
    gap: 12px;
}
/* Reusable UI Button Component */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Landing Page Hero Container */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Features Display Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}
.feature-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Community & Forums Section */
.community-section {
    background-color: var(--bg-card);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

/* =========================================================================
   AUTHENTICATION FORM STYLES (LOGIN & SIGNUP)
   ========================================================================= */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 2rem 1rem;
}
.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.auth-card h2 {
    margin-bottom: 0.5rem;
    text-align: center;
}
.auth-card p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    outline: none;
}
.form-control:focus {
    border-color: var(--accent-blue);
}
.auth-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--accent-blue);
}

/* =========================================================================
   ADMIN DASHBOARD LAYOUT & RESPONSIVE SIDEBAR
   ========================================================================= */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
}
.sidebar-brand {
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}
.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: var(--bg-dark);
    color: var(--accent-blue);
}

/* Dashboard Main Content Area */
.dashboard-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
}
.dashboard-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dashboard-content {
    padding: 2rem;
    flex-grow: 1;
}

/* Stat Metrics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}
.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
}
.stat-card h4 {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* Generic Content Container Panel */
.panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.panel-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Data Tables Styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.data-table th {
    color: var(--text-muted);
}



/* =========================================================================
   DEPOSIT & PAYMENT PAGE STYLES
   ========================================================================= */

/* Notification Alert Box */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.alert-info {
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-cyan);
    color: #e0f2fe;
}

/* Payment Method Tabs Header */
.payment-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease-in-out;
}
.tab-btn:hover {
    color: var(--text-main);
    border-color: var(--accent-blue);
}
.tab-btn.active {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

/* Tab Content Displays */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Instructions Box */
.payment-info-box {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}
.payment-info-box h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
}
.payment-info-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.payment-instruction-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}
.payment-instruction-list li {
    color: var(--text-main);
}
.copyable-text {
    font-family: monospace;
    background-color: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
}




/* =========================================================================
   REGISTRATION PAGE & SERVICE CARDS STYLES
   ========================================================================= */

.registration-type-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.reg-tab-btn {
    flex: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.reg-tab-btn.active, .reg-tab-btn:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

.reg-section {
    display: none;
}

.reg-section.active {
    display: block;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 1rem;
}

.service-card {
    position: relative;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.service-card.active {
    border-color: var(--accent-cyan);
    background-color: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.card-title {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 6px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.card-req {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: var(--bg-dark);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.selected-summary-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}










/* =========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================= */
@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
    }
    .hero h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
}

/* =========================================================================
   MOBILE CAROUSEL FIX FOR FEATURES GRID (320px - 768px)
   ========================================================================= */
@media (max-width: 768px) {
    .features-grid {
        /* Convert grid to horizontal flexbox carousel */
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS */
        
        /* Spacing & Layout */
        gap: 15px;
        padding: 1rem 5% 1.5rem 5%;
        max-width: 100%;
        
        /* Hide scrollbars across browsers */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE / Edge */
    }

    .features-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .feature-card {
        /* Force cards into fixed-width carousel items */
        flex: 0 0 85%;
        min-width: 85%;
        scroll-snap-align: center;
        box-sizing: border-box;
    }
}






