/* General Reset & Body */
body {
    font-family: Arial, sans-serif;
    background: #f4f7f6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

/* Navigation */
header {
    background: #0b5ea8;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    cursor: pointer;
}

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

/* Layout & Sections */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.section {
    display: none; /* Hidden by default, toggled by JS */
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section.active {
    display: block;
}

h1, h2, h3 {
    color: #0b5ea8;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.btn {
    background: #0b5ea8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #094f8a;
}

.btn-danger {
    background: #d9534f;
}

.btn-danger:hover {
    background: #c9302c;
}

/* Info Section */
.info-block {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Search Bar */
.search-container {
    margin-bottom: 15px;
}

#searchClaims {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Table Container - Responsive Wrapper */
.table-container {
    margin-top: 20px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    overflow: hidden; /* Rounds corners */
}

/* Scroll wrapper for mobile responsiveness */
.table-scroll {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; /* Ensures table doesn't squish too much on mobile */
}

/* Header Styling */
thead {
    background: linear-gradient(to right, #0b5ea8, #0a4f8a);
    color: #ffffff;
}

thead th {
    padding: 14px;
    font-size: 14px;
    text-transform: uppercase;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

thead th:last-child {
    border-right: none;
}

/* Body Styling */
tbody td {
    padding: 14px;
    font-size: 14px;
    border-bottom: 1px solid #e1e6ef;
    border-right: 1px solid #e1e6ef;
    vertical-align: middle;
    color: #333;
}

tbody td:last-child {
    border-right: none;
}

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

tbody tr:hover {
    background-color: #f1f5f9;
}

/* Specific Column Styling */
.amount {
    font-weight: bold;
    color: #2c3e50;
}

.email {
    color: #0b5ea8;
    text-decoration: none;
}

/* Button Styling */
.claim-btn {
    background: linear-gradient(to bottom, #1e88e5, #1565c0);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.claim-btn:hover {
    background: linear-gradient(to bottom, #1565c0, #0d47a1);
}

/* Spinner for buttons */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Actions */
.admin-actions button {
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

.btn-warning {
    background: #f0ad4e;
}
.btn-warning:hover {
    background: #ec971f;
}
.btn-success {
    background: #5cb85c;
}
.btn-success:hover {
    background: #449d44;
}

/* --- MODAL STYLES (Action Flow) --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-header {
    font-size: 20px;
    font-weight: bold;
    color: #0b5ea8;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.step-box {
    background: #f9fbfd;
    border: 1px solid #e1e6ef;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.step-title {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
    font-size: 14px;
}

.app-links a {
    display: inline-block;
    margin-right: 10px;
    color: #1e88e5;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.email-details {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

.disclaimer {
    font-size: 11px;
    color: #777;
    margin-top: 15px;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #777;
    font-size: 12px;
    border-top: 1px solid #ddd;
}

.messageDiv{
    background-color:hsl(327,90%,28%);
    color:white;
    padding:10px 20px;
    margin:10px;
    border-radius: 5px;
    font-size:1rem;
    opacity:0;
    animation:fadeOut 7s forwards;

}
