
/* FALCON VMS - MAIN STYLING */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #F3F5F8;
    color: #263445;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    background: #071A2B;
    color: white;
    padding: 25px 18px;
    display: flex;
    flex-direction: column;
}

.logo {
    padding: 10px 12px 30px;
    border-bottom: 1px solid #294157;
}

.logo h2 {
    color: #FFFFFF;
    font-size: 27px;
    letter-spacing: 2px;
}

.logo p {
    color: #C8102E;
    font-size: 11px;
    margin-top: 5px;
    font-weight: bold;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 8px;
}

.sidebar nav a {
    color: #D5DDE5;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #C8102E;
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 10px;
    color: #AAB7C4;
    font-size: 12px;
}

/* MAIN CONTENT */

.main-content {
    flex: 1;
    padding: 30px;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.topbar h2 {
    font-size: 20px;
    color: #071A2B;
}

.topbar p {
    font-size: 13px;
    color: #7B8794;
    margin-top: 5px;
}

.user-info {
    background: #F0F2F5;
    padding: 11px 16px;
    border-radius: 7px;
    font-size: 13px;
}

/* WELCOME SECTION */

.welcome {
    margin: 35px 0 25px;
}

.welcome h1 {
    color: #071A2B;
    font-size: 27px;
    margin-bottom: 10px;
}

.welcome p {
    color: #788594;
    font-size: 14px;
}

/* DASHBOARD CARDS */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 23px;
    border-radius: 10px;
    border-left: 4px solid #C8102E;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.card h3 {
    font-size: 14px;
    color: #788594;
    font-weight: normal;
}

.card h1 {
    font-size: 32px;
    color: #071A2B;
    margin: 18px 0 8px;
}

.card p {
    font-size: 12px;
    color: #929DA8;
}

/* QUICK ACTIONS */

.quick-actions,
.recent-visitors {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.quick-actions h2,
.recent-visitors h2 {
    font-size: 18px;
    color: #071A2B;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-buttons button {
    border: none;
    background: #C8102E;
    color: white;
    padding: 13px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
}

.action-buttons button:hover {
    background: #990D24;
    transform: translateY(-2px);
}

/* VISITOR TABLE */

.recent-visitors {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead {
    background: #F3F5F8;
}

th, td {
    padding: 16px 13px;
    text-align: left;
    border-bottom: 1px solid #E9EDF1;
    font-size: 13px;
}

th {
    color: #596777;
    font-weight: 600;
}

td {
    color: #788594;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 1000px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin-top: 15px;
    }

    .sidebar-footer {
        margin-top: 10px;
    }

    .main-content {
        padding: 15px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .welcome h1 {
        font-size: 22px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }
}

/* =================================
   FALCON VMS - VISITOR REGISTRATION
================================= */

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #263445;
    margin-top: 10px;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #DCE2E8;
    border-radius: 6px;
    background: #FAFBFC;
    font-size: 14px;
    color: #263445;
    outline: none;
    transition: 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #C8102E;
    background: white;
    box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

form input::placeholder {
    color: #A0AAB5;
}

form select {
    cursor: pointer;
}

form button {
    grid-column: 1 / -1;
    background: #C8102E;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

form button:hover {
    background: #990D24;
}

/* REGISTRATION PAGE RESPONSIVENESS */

@media (max-width: 650px) {
    form {
        grid-template-columns: 1fr;
    }

    form button {
        grid-column: 1;
    }
}

/* =========================================
   FALCON VMS - SHARED INNER PAGE DESIGN
========================================= */

.records-page,
.checkout-page {
    background: #F3F5F8;
    color: #263445;
    font-family: Arial, sans-serif;
    padding: 25px;
    min-height: 100vh;
}

.records-page .container,
.checkout-page .container {
    max-width: 1400px;
    margin: auto;
}

.records-page .header,
.checkout-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.records-page .header h1,
.checkout-page .header h1 {
    color: #071A2B;
    margin-bottom: 5px;
}

.records-page .back-link,
.checkout-page .back-link {
    background: #C8102E;
    color: white;
    padding: 11px 18px;
    text-decoration: none;
    border-radius: 6px;
}

.records-page .summary-cards,
.checkout-page .summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.records-page .summary,
.checkout-page .card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 180px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.records-page .summary h2,
.checkout-page .card h2 {
    color: #C8102E;
    font-size: 30px;
    margin: 0;
}

.records-page .search,
.checkout-page .search {
    width: 100%;
    padding: 14px;
    border: 1px solid #DCE2E8;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    background: white;
}

.records-page .table-container,
.checkout-page .table-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.records-page table,
.checkout-page table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.records-page th,
.records-page td,
.checkout-page th,
.checkout-page td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #E9EDF1;
    font-size: 13px;
}

.records-page th,
.checkout-page th {
    background: #071A2B;
    color: white;
}

.records-page tr:hover,
.checkout-page tr:hover {
    background: #F3F5F8;
}

.records-page .inside,
.checkout-page .inside {
    color: #16803C;
    font-weight: bold;
}

.records-page .checked-out {
    color: #C8102E;
    font-weight: bold;
}

.records-page .checkout-btn,
.checkout-page .checkout-btn {
    background: #C8102E;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.records-page .checkout-btn:hover,
.checkout-page .checkout-btn:hover {
    background: #990D24;
}

.records-page .checkout-btn:disabled {
    background: #888;
    cursor: not-allowed;
}

.records-page .empty,
.checkout-page .empty {
    text-align: center;
    padding: 30px;
    color: #777;
}

.checkout-page .message {
    background: #E8F5E9;
    color: #236B2B;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

/* INNER PAGE MOBILE RESPONSIVENESS */

@media (max-width: 650px) {
    .records-page,
    .checkout-page {
        padding: 15px;
    }

    .records-page .header,
    .checkout-page .header {
        align-items: flex-start;
        flex-direction: column;
    }

    .records-page .summary-cards,
    .checkout-page .summary {
        flex-direction: column;
    }

    .records-page .summary,
    .checkout-page .card {
        width: 100%;
    }

    .records-page .table-container,
    .checkout-page .table-container {
        padding: 10px;
    }
}

/* REGISTRATION PAGE FINAL STYLING */

.registration-page {
    background: #F3F5F8;
    min-height: 100vh;
}

.registration-page .main-content {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
}

.registration-page .topbar {
    border-top: 4px solid #C8102E;
}

.registration-page .welcome {
    margin: 30px 0 20px;
}

.registration-page .quick-actions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.registration-page .quick-actions h2 {
    color: #071A2B;
    border-bottom: 2px solid #F3F5F8;
    padding-bottom: 15px;
}

.registration-page form {
    gap: 15px 22px;
}

.registration-page form button {
    background: #C8102E;
    transition: 0.3s;
}

.registration-page form button:hover {
    background: #990D24;
}

@media (max-width: 650px) {
    .registration-page .main-content {
        padding: 15px;
    }

    .registration-page .quick-actions {
        padding: 18px;
    }
}
