/* --- Modern DARK Glassmorphism Style --- */

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #021537, #000000, #003a83);
    background-attachment: fixed;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    color: #a7bfff; 
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 20px;
}
header nav ul li a {
    color: #f0f0f0;
    font-weight: 500;
}

/* Main Content */
main {
    padding: 20px 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

/* Glass Containers (Forms, Tables, Stats) */
.form-container,
.stat-box,
.data-table {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Forms */
.form-container {
    padding: 30px;
    max-width: 450px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #f0f0f0;
}

/* Glass Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-sizing: border-box; 
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 16px;
}
.form-group input[readonly] {
    background: rgba(0, 0, 0, 0.3);
}

::placeholder {
    color: #999;
    opacity: 1; 
}

/* Modern Button Style */
.btn {
    display: inline-block;
    background: #6D5BFF; 
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
    box-sizing: border-box; /* [FIX] Added this line */
}

.btn:hover {
    background: #8B7EFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(109, 91, 255, 0.3);
}

.btn-full {
    width: 100%;
}

/* Glass Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.5);
    border-color: rgba(220, 53, 69, 0.8);
}

.alert-success {
    background: rgba(40, 167, 69, 0.5);
    border-color: rgba(40, 167, 69, 0.8);
}

.alert-info {
    color: #fff;
    background: rgba(23, 162, 184, 0.5);
    border-color: rgba(23, 162, 184, 0.8);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    color: #fff;
}

.status-pending {
    color: #333;
    background-color: #ffc107;
}
.status-paid {
    background-color: #28a745;
}
.status-failed {
    background-color: #dc3545;
}
.status-cancelled {
    background-color: #6c757d;
}
.status-admin {
    background-color: #6f42c1;
}
.status-accounts {
    background-color: #17a2b8;
}
.status-employee {
    background-color: #f8f9fa;
    color: #333;
}
.status-manager {
    background-color: #fd7e14;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-box {
    padding: 20px;
}
.stat-box h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #ccc;
    text-transform: uppercase;
}
.stat-box p {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}
.stat-box.stat-pending p {
    color: #ffc107;
}
.stat-box.stat-paid p {
    color: #28a745;
}

/* Small Action Buttons (View, Cancel) */
.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}
.btn-small.btn-danger {
    background: rgba(220, 53, 69, 0.5);
    color: #fff;
    border-color: rgba(220, 53, 69, 0.7);
}
.btn-small.btn-danger:hover {
    background: rgba(220, 53, 69, 0.8);
}
.btn-small:not(.btn-danger) {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}
.btn-small:not(.btn-danger):hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Payment Summary Box */
.payment-summary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.1);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    color: #eee;
}
.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.summary-row strong {
    color: #fff;
}

/* Public pay.php page styling */
.pay-page-body .form-container {
    max-width: 600px; 
}
.total-due-box {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    box-sizing: border-box; /* [FIX] Added this line */
}