@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-focus: #e0e7ff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-circle {
    width: 100px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    position: relative;
}

.step-circle::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
    border-style: dashed;
}

.circle {
    width: 20px;
    height: 20px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: #fff;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--input-focus);
}

::placeholder {
    color: #94a3b8;
}

.row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.col {
    flex: 1;
}

.options-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.option-group h3 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.payment-info {
    margin-bottom: 1.5rem;
}

.payment-info p {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.payment-number {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

/* Response Message */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
/* Advanced Admin Panel Styles */
.admin-body {
    background-color: #f1f5f9;
    padding: 0;
    display: block;
    overflow-x: hidden;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: 260px;
    background: #1e293b;
    color: white;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar nav {
    flex: 1;
}

.sidebar nav a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background: #334155;
    color: white;
}

.sidebar nav a.logout-btn {
    margin-top: auto;
    color: #fca5a5;
}

.sidebar nav a.logout-btn:hover {
    background: #450a0a;
}

.admin-content {
    flex: 1;
    padding: 2rem 3rem;
    background: #f8fafc;
    min-width: 0; /* Prevents flex items from overflowing */
}

.content-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-main);
}

.content-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.25rem;
}

.content-header p {
    color: var(--text-muted);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.admin-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.admin-table {
    min-width: 800px; /* Ensures table doesn't squash too much */
}

/* Admin Search Bar Styles */
.admin-search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
    margin-bottom: 2rem;
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
}

.search-input-wrapper::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.btn-search {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-search:hover {
    background: var(--primary-hover);
}

.btn-clear {
    padding: 0.75rem 1.25rem;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #e2e8f0;
}

.settings-card {
    max-width: 600px;
}

/* Sidebar Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .menu-toggle {
        display: block;
        margin-right: 1rem;
    }
    
    .admin-content {
        padding: 1.5rem 1rem;
    }
    
    .content-header {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    /* Mobile Table Hiding */
    .admin-table th:nth-child(3), 
    .admin-table td:nth-child(3),
    .admin-table th:nth-child(4), 
    .admin-table td:nth-child(4),
    .admin-table th:nth-child(5), 
    .admin-table td:nth-child(5) {
        display: none;
    }
    
    .admin-table {
        min-width: 100%;
    }

    .clickable-name {
        color: var(--primary-color);
        text-decoration: underline;
        cursor: pointer;
        display: block;
        margin-bottom: 4px;
    }
}

/* Floating Modal Styles */
.modal-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-wrapper.active {
    display: flex;
}

.floating-modal {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #1e293b;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.detail-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.025em;
    margin-bottom: 4px;
    display: block;
}

.detail-value {
    color: #1e293b;
    font-size: 0.9375rem;
    word-break: break-word;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.alert-error { background: #fee2e2; color: #991b1b; }

/* Thank You Page Styles & Animations */
.thanks-card {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.6s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 40px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

.thanks-card h1 {
    margin-bottom: 1rem;
    color: #111827;
}

.thanks-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-home {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-home:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {

    body {
        padding: 10px;
    }
    
    .card {
        padding: 1.5rem 1rem;
    }
    
    .options-grid {
        flex-direction: column;
        gap: 1rem;
    }
    
    .row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    h1 {
        font-size: 1.25rem;
    }
}

