:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 30px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--warning-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.table-section {
    margin-bottom: 30px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

.data-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

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

.data-table tr:last-child td {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.next-section {
    text-align: center;
    padding: 20px;
}

.summary-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.summary-left,
.summary-right {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.json-display {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    max-height: 400px;
    overflow-y: auto;
}

.verification-section {
    background: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.verification-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.otp-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 15px;
}

.otp-input {
    min-width: 150px;
}

.result-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

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

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

.message-content {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
}

.error-message {
    text-align: center;
    padding: 40px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    color: var(--danger-color);
}

.hidden {
    display: none !important;
}

.editable {
    background-color: #fff3cd;
    border: 1px dashed #ffc107;
    border-radius: 4px;
    padding: 8px;
    cursor: text;
}

.editable:focus {
    outline: none;
    background-color: white;
    border: 2px solid var(--secondary-color);
}
/* Add to existing CSS */
.success-section {
    text-align: center;
    padding: 40px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius);
    padding: 30px;
    color: #155724;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 15px;
}

.access-info {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.message-header {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.message-data {
    margin-bottom: 20px;
}

.json-section {
    margin-top: 20px;
}

.message-footer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 15px;
    color: #856404;
}

/* Add to existing CSS */

/* Action type labels */
.action-label {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

/* Form input improvements */
.form-input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Improved input section layout */
.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 30px;
    align-items: end;
}

/* Table improvements */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 120px;
    text-align: center;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 200px;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 150px;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 100px;
    text-align: center;
}

/* Add to existing CSS */

/* Navigation section */
.navigation-section {
    margin-bottom: 20px;
}

.navigation-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
}

/* Success message improvements */
.result-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: var(--border-radius);
}

.result-message.success a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.result-message.success a:hover {
    text-decoration: underline;
}

/* Summary table action labels */
.summary-left .action-label {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Add to existing CSS */

/* Icon button styles */
.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-icon.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-icon.btn-danger:hover {
    background-color: #c0392b;
}

/* Table improvements for actions column */
.data-table th:last-child,
.data-table td:last-child {
    width: 60px;
    text-align: center;
    padding: 8px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure table columns have proper spacing */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 120px;
    text-align: center;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 200px;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 150px;
}

/* Action labels in table */
.action-label {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

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

.action-remove {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Login page styles */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.login-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.login-info p {
    margin: 0;
    font-size: 0.9em;
    color: var(--dark-color);
}

/* Update navigation to show user info */
.navigation-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    font-size: 0.9em;
}

.user-email {
    background: var(--light-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* User info styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.9em;
}

.user-email {
    background: var(--light-color);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--primary-color);
}

.user-info .btn {
    padding: 6px 12px;
    font-size: 0.8em;
}

/* No entries message */
.no-entries {
    text-align: center;
    padding: 40px !important;
    color: #666;
}

.no-entries i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #ddd;
}

.no-entries p {
    margin: 0;
    font-size: 1.1em;
}

/* Header layout for user info */
.header {
    position: relative;
}

/* Navigation section layout */
.navigation-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.navigation-section .user-info {
    margin-top: 0;
    order: 2;
}

.navigation-section .btn {
    order: 1;
}
/* Display page table styles */
.message-data .data-table {
    margin-bottom: 20px;
}

.message-data .data-table th:nth-child(1),
.message-data .data-table td:nth-child(1) {
    width: 120px;
    text-align: center;
}

.message-data .data-table th:nth-child(2),
.message-data .data-table td:nth-child(2) {
    width: 200px;
}

.message-data .data-table th:nth-child(3),
.message-data .data-table td:nth-child(3) {
    width: 150px;
}

/* Action labels in display page */
.message-data .action-label {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.message-data .action-add {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-data .action-remove {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Add to existing CSS */

/* Dashboard Styles */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.completed {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-info h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--dark-color);
}

.stat-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-weight: 600;
}

/* Table Header */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    margin: 0;
    color: var(--dark-color);
}

/* Status Labels */
.status-label {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* URL Links */
.url-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
}

.url-link:hover {
    text-decoration: underline;
}

.url-expired {
    color: #999;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
    text-decoration: line-through;
}

/* Login Section */
.login-section {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 400px;
    margin: 50px auto;
}

.login-form h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.login-form p {
    margin-bottom: 25px;
    color: #666;
}

/* Additional Icon Button Styles */
.btn-icon.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-icon.btn-info:hover {
    background-color: #138496;
}

.btn-icon.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-icon.btn-secondary:hover {
    background-color: #545b62;
}

/* Refresh Button */
#refreshBtn {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Add to existing CSS */

/* Additional Stat Card */
.stat-icon.expired {
    background: linear-gradient(135deg, #868e96 0%, #495057 100%);
}

/* Expired Status Label */
.status-expired {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard OTP Form */
.login-form .otp-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 15px;
}

.login-form .otp-input {
    min-width: 150px;
}

/* Enhanced Table Styles */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 100px;
    text-align: center;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 200px;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 250px;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 180px;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    width: 160px;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
    width: 160px;
}

.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    width: 80px;
    text-align: center;
}


/* Add to existing CSS */

/* Filter Section */
.filter-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9em;
}

.filter-select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    background: white;
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Table Header Improvements */
.table-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-count {
    color: #666;
    font-size: 0.9em;
    font-weight: 600;
}

/* Sortable Table */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px !important;
}

.sortable:hover {
    background-color: #f8f9fa;
}

.sortable i {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
}

.sorted-asc,
.sorted-desc {
    background-color: #e3f2fd;
    color: var(--secondary-color);
}

.sorted-asc i,
.sorted-desc i {
    color: var(--secondary-color);
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 40px !important;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.no-results p {
    margin: 0;
    font-size: 1.1em;
}

/* Radio Button Styles */
.role-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1em;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
    padding: 8px 0;
}

.radio-input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition);
}

.radio-input:checked + .radio-custom {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

.radio-input:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label:hover .radio-custom {
    border-color: var(--secondary-color);
}

.radio-text {
    font-size: 1em;
    user-select: none;
}

/* Enhanced Login Card for Mobile */
.login-card {
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
/* Action Section Styles */
.action-section {
    background: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.action-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.action-section p {
    margin-bottom: 20px;
    color: #666;
}

.action-buttons-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons-group .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Action Confirmation Styles */
.action-confirmation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 15px 0;
    color: #856404;
}

.action-confirmation p {
    margin: 5px 0;
}

/* Success Message Enhancements */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius);
    padding: 30px;
    color: #155724;
    text-align: center;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* Message Content Enhancements */
.message-content {
    background: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.message-header {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.message-data {
    margin-bottom: 20px;
}

.json-section {
    margin-top: 25px;
}

.message-footer {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: var(--border-radius);
    padding: 15px;
    color: var(--dark-color);
    font-size: 0.9em;
}
.export-btn {
    background: #218844;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.export-btn:hover {
    background: #219955;
}

/* Responsive Design for Action Buttons */
@media (max-width: 768px) {
    .action-buttons-group {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons-group .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .action-section {
        padding: 20px;
        margin: 15px 0;
    }
    
    .message-content {
        padding: 20px;
    }
    
    .message-header {
        padding: 15px;
    }
}

/* iPhone SE and smaller devices */
@media (max-width: 375px) {
    .action-section {
        padding: 15px;
    }
    
    .action-buttons-group .btn {
        min-width: 100px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .message-content {
        padding: 15px;
    }
}

/* Hover effects for action buttons */
.action-buttons-group .btn-success:hover {
    background-color: #229954;
    transform: translateY(-2px);
}

.action-buttons-group .btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Navigation Section Styles */
.navigation-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-email {
    background: var(--light-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--dark-color);
}

.user-info .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.9em;
}

.user-info .btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}
/* Dashboard Specific Styles */
.stats-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.approved {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.stat-icon.rejected {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.stat-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-weight: 600;
}

/* Filters Section */
.filters-section {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9em;
}

.filter-select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}
/* Table Sorting Styles */
.data-table th {
    position: relative;
    user-select: none;
    transition: background-color 0.2s ease;
}

.data-table th:hover {
    background-color: #f8f9fa;
}

.sort-asc,
.sort-desc {
    background-color: #e3f2fd !important;
    color: var(--secondary-color);
}

.sort-indicator {
    margin-left: 5px;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Enhanced table styles for better sorting UX */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.data-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th:first-child {
    border-top-left-radius: var(--border-radius);
}

.data-table th:last-child {
    border-top-right-radius: var(--border-radius);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.data-table tr:last-child td {
    border-bottom: none;
}

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

/* Responsive table sorting */
@media (max-width: 768px) {
    .data-table th {
        padding: 12px 8px;
        font-size: 0.9em;
    }
    
    .data-table td {
        padding: 12px 8px;
        font-size: 0.9em;
    }
    
    .sort-indicator {
        margin-left: 3px;
        font-size: 0.9em;
    }
}

/* Loading state for sorting */
.data-table th.sorting {
    background-color: #e3f2fd;
    color: var(--secondary-color);
}

/* Ensure table headers are clearly clickable */
.data-table th {
    cursor: pointer;
    transition: all 0.2s ease;
}

.data-table th:active {
    transform: translateY(1px);
}

/* Status badges in table */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

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

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

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .filters-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .filter-buttons {
        grid-column: span 2;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        grid-column: span 1;
        justify-content: stretch;
    }
    
    .filter-buttons .btn {
        flex: 1;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .filters-section {
        padding: 15px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stat-info h3 {
        font-size: 1.6rem;
    }
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
    .navigation-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .user-info {
        gap: 8px;
    }
    
    .user-info .btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .user-email {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

/* iPhone SE and smaller devices */
@media (max-width: 375px) {
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-info .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hover effects for navigation buttons */
.user-info .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .login-card {
        padding: 25px;
        margin: 10px;
    }
    
    .login-card h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .login-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .radio-group {
        gap: 15px;
        flex-direction: column;
    }
    
    .radio-label {
        padding: 10px 15px;
        background: white;
        border-radius: var(--border-radius);
        border: 1px solid #eee;
        margin-bottom: 5px;
    }
    
    .radio-label:hover {
        background: #f8f9fa;
        border-color: var(--secondary-color);
    }
    
    .radio-input:checked + .radio-custom + .radio-text {
        color: var(--secondary-color);
        font-weight: 600;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-input {
        padding: 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .otp-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-login {
        margin-top: 15px;
    }
    
    .login-info {
        font-size: 0.85rem;
        padding: 12px;
    }
}

/* iPhone SE and smaller devices */
@media (max-width: 375px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .login-card {
        padding: 20px 15px;
    }
    
    .radio-label {
        padding: 12px 15px;
    }
    
    .radio-custom {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .radio-custom::after {
        width: 8px;
        height: 8px;
    }
}

/* Desktop Enhancements */
@media (min-width: 769px) {
    .radio-label {
        padding: 10px 20px 10px 0;
    }
    
    .radio-label:hover {
        transform: translateY(-1px);
    }
    
    .radio-input:checked + .radio-custom + .radio-text {
        color: var(--secondary-color);
        font-weight: 600;
    }
}

/* Focus states for accessibility */
.radio-input:focus + .radio-custom {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Animation for radio buttons */
@keyframes radioSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.radio-input:checked + .radio-custom {
    animation: radioSelect 0.3s ease;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: button-loading 1s linear infinite;
}

@keyframes button-loading {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Dark mode support for radio buttons */
@media (prefers-color-scheme: dark) {
    .radio-label {
        color: #e0e0e0;
    }
    
    .radio-custom {
        border-color: #555;
    }
    
    .radio-label:hover .radio-custom {
        border-color: var(--secondary-color);
    }
}

/* Enhanced Table Responsive Design */
@media (max-width: 1200px) {
    .filter-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: stretch;
    }
    
    .filter-actions .btn {
        flex: 1;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .data-table {
        font-size: 0.8em;
    }
    
    .sortable {
        padding-right: 20px !important;
    }
    
    .sortable i {
        font-size: 10px;
    }
}

/* Search Input */
#searchFilter {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

#searchFilter:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Responsive Stats */
@media (max-width: 1200px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .login-form .otp-group {
        grid-template-columns: 1fr;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .login-section {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .data-table {
        font-size: 0.9em;
    }
    
    .url-link, .url-expired {
        font-size: 0.8em;
    }
}
/* Responsive design for display page */
@media (max-width: 768px) {
    .message-data .action-label {
        font-size: 0.8em;
        padding: 4px 8px;
        min-width: 70px;
    }
    
    .message-data .data-table th:nth-child(1),
    .message-data .data-table td:nth-child(1) {
        width: 100px;
    }
}
/* Responsive design */
@media (max-width: 768px) {
    .navigation-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navigation-section .user-info {
        order: 1;
        justify-content: center;
    }
    
    .navigation-section .btn {
        order: 2;
        align-self: flex-start;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hover effects for table rows */
.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr:hover .btn-icon {
    opacity: 1;
}

/* Initially make delete icon slightly transparent for cleaner look */
.btn-icon {
    opacity: 0.7;
}

