/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    min-width: 320px;
    overflow-x: hidden;
}

.banner-image {
    width: 100%;
    max-width: 800px;
}

/* Container Styles */
.container, 
.verify-container, 
.landing-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Full-width Admin Container */
.admin-container,
.form-container {  /* Form container also full-width */
    width: 100%;
    max-width: none;
    margin: 20px auto;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Header Styles */
h1, h2 {
    color: #1a73e8;
    margin-bottom: 20px;
}

/* Form Styles */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

input:focus, 
select:focus,
textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
    background-color: white;
}

/* Button Styles - Fixed */
.btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
    border: 1px solid #1a73e8;
}

.btn-primary:hover {
    background-color: #0d5bba;
    border-color: #0a4da3;
}

.btn-secondary {
    background-color: white;
    color: #1a73e8;
    border: 2px solid #1a73e8;
    padding: 11px 24px; /* Adjusted for border */
}

.btn-secondary:hover {
    background-color: #f0f6ff;
}

.btn-submit {
    background: #1a73e8;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    margin-top: 20px;
    transition: background 0.3s;
    display: inline-block;
}

.btn-submit:hover {
    background: #0d5bba;
}

/* Message Styles */
.message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Confirmation Page */
.confirmation-container {
    text-align: center;
}

.confirmation-number {
    background-color: #f0f6ff;
    padding: 15px;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a73e8;
    margin: 20px 0;
    display: inline-block;
    word-break: break-word;
}

/* Radio/Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    margin: 0;
}

/* File Input */
input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    box-sizing: border-box;
}

/* Admin Panel Styles */
.admin-actions {
    margin-bottom: 20px;
    text-align: right;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9rem;
}

.data-table th, 
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.admin-welcome {
    font-size: 1.1rem;
    color: #555;
}

.admin-nav {
    display: flex;
    gap: 15px;
}

.admin-nav a {
    text-decoration: none;
    color: #1a73e8;
    font-weight: 600;
}

.admin-nav a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .container, 
    .verify-container, 
    .landing-container {
        margin: 20px 10px;
        width: calc(100% - 20px);
    }
}

@media (max-width: 768px) {
    .container, 
    .verify-container, 
    .landing-container,
    .admin-container,
    .form-container {
        padding: 15px;
        margin: 15px 0;
        border-radius: 0;
        box-shadow: none;
    }

    .btn,
    .btn-submit {
        width: 100%;
        margin: 8px 0;
        padding: 12px 10px;
    }

    .btn-secondary {
        padding: 11px 10px; /* Adjusted for border */
    }

    .btn + .btn {
        margin-top: 10px;
    }

    .data-table {
        display: block;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 15px;
        border-bottom: 1px solid #eee;
        text-align: right;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 15px;
        color: #555;
        text-align: left;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-nav {
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea,
    .btn {
        padding: 10px 12px;
    }

    .btn-secondary {
        padding: 9px 12px; /* Adjusted for border */
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .radio-option,
    .checkbox-option {
        white-space: normal;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }

    .container, 
    .form-container, 
    .verify-container, 
    .landing-container,
    .admin-container {
        box-shadow: none;
        border: 1px solid #ddd;
        padding: 10mm;
        margin: 5mm auto;
        page-break-inside: avoid;
    }

    .btn, 
    .admin-nav, 
    .no-print {
        display: none !important;
    }
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    min-width: 320px;
    overflow-x: hidden;
}

/* Container Styles */
.container, 
.verify-container, 
.landing-container {
    width: 100%;
    max-width: 800px; /* Fixed width for regular pages */
    margin: 20px auto;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Form Container - Fixed 800px on desktop */
.form-container {
    width: 100%;
    max-width: 800px; /* Fixed width for forms */
    margin: 20px auto;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Full-width Admin Container */
.admin-container {
    width: 100%;
    max-width: none; /* Full width for admin */
    margin: 20px auto;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Table Styles - Fixed mobile alignment */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9rem;
}

.data-table th, 
.data-table td {
    padding: 12px 15px;
    text-align: left; /* Force left alignment */
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* Responsive Table */
@media (max-width: 768px) {
    /* Admin page full width on mobile */
    .admin-container {
        padding: 15px;
        margin: 15px 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* Table mobile styles */
    .data-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 15px;
        border-bottom: 1px solid #eee;
        text-align: left !important; /* Force left align */
        width: 100%;
        box-sizing: border-box;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 15px;
        color: #555;
        text-align: left;
        flex-shrink: 0;
    }

    /* Form container mobile styles */
    .form-container {
        padding: 15px;
        margin: 15px 0;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile form elements */
@media (max-width: 480px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        padding: 10px 12px;
        font-size: 16px; /* Better mobile readability */
    }

    .btn, 
    .btn-submit {
        padding: 12px;
        font-size: 16px;
    }
}


/* Card Styles */
.registration-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.registration-number {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #3498db;
}

.detail-row {
    display: flex;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f5f5f5;
}

.detail-label {
    font-weight: 600;
    width: 40%;
    color: #7f8c8d;
}

.detail-value {
    flex: 1;
    color: #2c3e50;
}

.card-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Verification specific */
.verification-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    .registration-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

    .badge {
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: bold;
    }
    .badge.verified {
        background: #2ecc71;
        color: white;
    }
    .badge.pending {
        background: #f39c12;
        color: white;
    }

/* Add to styles.css */
.verification-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.verification-badge.pending {
    background: #f39c12;
}

.status-verified {
    color: #2ecc71;
    font-weight: bold;
}

.status-pending {
    color: #f39c12;
    font-weight: bold;
}

/* Add these to your existing styles.css */
@media (max-width: 768px) {
    /* General mobile styles */
    .container {
        padding: 0.5rem;
    }
    
    /* Card improvements */
    .registration-card {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    /* Table improvements */
    .data-table td {
        text-align: left !important;
    }
    
    /* Button spacing */
    .card-footer .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Badge sizes */
    .badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Force left alignment for table data */
.data-table td {
    text-align: left;
}

/* View button styling */
.btn-secondary {
    margin-right: 0.5rem;
}


/* Add to your CSS */
@media (max-width: 768px) {
    .data-table tbody {
        display: block;
        width: 100%;
    }
    
    .data-table tr {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
    }
    
    .data-table td {
        width: 100%;
        box-sizing: border-box;
    }
    
    .data-table td:before {
        width: 45%;
        min-width: 120px;
    }
}

@media print {
    /* Reset margins and padding */
    body {
        margin: 0;
        padding: 0;
        line-height: 1.2;
        font-size: 12pt;
    }
    
    /* Reduce container padding */
    .container, .form-container {
        padding: 5mm !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Compact form elements */
    .form-group {
        margin-bottom: 3px !important;
    }
    
    /* Remove unnecessary elements */
    .no-print, header, footer, nav {
        display: none !important;
    }
    
    /* Optimize typography */
    h1, h2, h3, h4 {
        margin: 2mm 0 !important;
        page-break-after: avoid;
    }
    
    /* Table optimizations */
    table {
        border-collapse: collapse;
        width: 100%;
        margin: 2mm 0;
    }
    
    td, th {
        padding: 1mm;
        border: 0.5pt solid #ddd;
    }
    
    /* Prevent page breaks inside important sections */
    .print-section {
        page-break-inside: avoid;
    }
    
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints better */
    }
    
    .page-break {
        page-break-before: always;
    }

}