html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
}

/* Admin top navigation */
.admin-navbar {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.admin-nav-container {
    max-width: 1400px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.admin-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    margin-right: 1.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.admin-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.admin-brand-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: none;
}

.admin-nav-links .nav-link {
    color: #334155;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    white-space: nowrap;
    border-radius: 0.375rem;
}

.admin-nav-links .nav-link:hover,
.admin-nav-links .nav-link:focus {
    color: #0f172a;
    background-color: #f1f5f9;
}

.admin-nav-links .dropdown-menu {
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 0.35rem;
    min-width: 13rem;
}

.admin-nav-links .dropdown-item {
    font-size: 0.9375rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.25rem;
    color: #334155;
}

.admin-nav-links .dropdown-item:hover,
.admin-nav-links .dropdown-item:focus {
    background-color: #f1f5f9;
    color: #0f172a;
}

.admin-user-nav {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .admin-user-nav {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }
}

.admin-user-greeting {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b !important;
    font-size: 0.875rem;
    padding-right: 0.5rem;
}

.admin-user-nav .nav-link {
    color: #334155;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.admin-user-nav .nav-link:hover {
    color: #0f172a;
}

.admin-search-bar {
    max-width: 32rem;
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #dddddd;
}

button {
    margin-top: 20px;
    margin-right: 10px;
}

button.btn,
button.btn-close,
button.navbar-toggler,
button.sign-out-btn {
    margin-top: 0;
}

label {
    width: 15%;
}

.admin-login-form .form-label {
    display: block;
    width: auto;
}

select {
    width: 15%;
}

.full {
    width: 100%;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.mark-paid-button {
    margin-top: 0px !important;
}

.sign-out-btn {
    border: none;
    background: none;
    margin: 0px;
}

/* Refund Modal Styles */
.refund-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.refund-modal.hidden {
    display: none;
}

.refund-modal-content {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.refund-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.refund-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.refund-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
}

.refund-modal-body {
    padding: 24px;
}

.refund-transaction-details {
    margin-bottom: 20px;
    padding: 12px;
    background-color: #f9fafb;
}

.refund-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.refund-detail-label {
    color: #6b7280;
    font-size: 14px;
}

.refund-detail-value {
    color: #111827;
    font-weight: 500;
    font-size: 14px;
}

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

.refund-form-label {
    display: block;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

.refund-form-select, .refund-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    box-sizing: border-box;
}

.refund-form-textarea {
    resize: vertical;
    min-height: 60px;
}

.refund-warning {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.refund-warning-icon {
    color: #f59e0b;
    font-size: 16px;
    margin-right: 8px;
    margin-top: 1px;
}

.refund-warning-text {
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
}

.refund-modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    text-align: right;
    background-color: #f9fafb;
    border-radius: 0 0 8px 8px;
}

.refund-btn-cancel {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.refund-btn-confirm {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.refund-btn-confirm:disabled {
    cursor: not-allowed;
}

/* Refund page specific styles */
.refund-inline-form {
    display: inline;
}

.refund-current-page {
    font-weight: bold;
}