/* Billisa Main Stylesheet */
/* Copyright © 2025 Isaiah Nyalali. All Rights Reserved. */

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e0e0e0;
    --gray-300: #cccccc;
    --gray-400: #999999;
    --gray-500: #666666;
    --gray-600: #333333;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow);
}



.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}



.nav-brand img {
    height: 40px;
    width: auto;
}

.nav-brand span {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
}



.nav-admin-btn {
    padding: 10px 24px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.nav-admin-btn:hover {
    background: var(--gray-600);
    transform: translateY(-2px);
}

/* Main Container */
main {
    margin-top: 120px;
    padding: 0 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Container */
.form-container {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
}

.tab-btn.active {
    color: var(--black);
    border-bottom-color: var(--black);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form Steps */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--black);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--black);
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--black);
}

.form-group label .required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gray-600);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-secondary:hover {
    background: var(--gray-100);
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Summary Section */
.summary-section {
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 30px;
}

.summary-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-300);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    padding-top: 16px;
}

/* Payment Methods */
.payment-methods {
    margin-top: 20px;
    text-align: center;
}

.payment-methods img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* Business Info Section */
.business-info {
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.business-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.business-info p {
    color: var(--gray-500);
    margin-bottom: 25px;
    line-height: 1.8;
}

.business-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 50px 5%;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1); 
}

.footer-brand span {
    font-size: 20px;
    font-weight: 700;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--gray-300);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-600);
    color: var(--gray-400);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--black);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hidden */
.hidden {
    display: none !important;
}

/* --- SKELETON LOADER ANIMATIONS --- */
.skeleton {
    background: #f6f7f8;
    background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
    background-size: 800px 104px;
    height: 20px;
    width: 100%;
    border-radius: 4px;
    animation: placeHolderShimmer 1.5s infinite linear;
    margin-bottom: 8px;
    display: block;
}

@keyframes placeHolderShimmer {
    0% { background-position: -468px 0 }
    100% { background-position: 468px 0 }
}

.skeleton-text { width: 80%; height: 16px; }
.skeleton-title { width: 40%; height: 24px; margin-bottom: 12px; }
.skeleton-btn { width: 80px; height: 32px; border-radius: 4px; display: inline-block; }

/* --- ACTIVE/INACTIVE TABS STYLING (Index & Dashboard) --- */
.tab-btn {
    border-bottom: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab-btn.active {
    opacity: 1;
    border-bottom: 3px solid #000000;
    color: #000000;
    font-weight: 700;
    background: #fafafa;
}

.dashboard-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #888;
    font-size: 13px;
    border-top: 1px solid #eee;
}
