/* Global Styles */
:root {
    --primary-color: #4a6ee0;
    --secondary-color: #9747ff;
    --dark-color: #151829;
    --dark-secondary: #1e2235;
    --light-color: #f4f4f9;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--dark-color);
    color: var(--light-color);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

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

/* Main Content Styles */
.main-content {
    background-color: var(--dark-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 300px;
}

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

.intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.intro p {
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

/* Button Styles */
.cta-buttons {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(74, 110, 224, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(151, 71, 255, 0.3);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background-color: rgba(30, 34, 53, 0.7);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Form Styles */
.form-container {
    background-color: var(--dark-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(30, 34, 53, 0.7);
    color: var(--light-color);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.password-requirements {
    background-color: rgba(30, 34, 53, 0.7);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.password-requirements p {
    margin-bottom: 0.5rem;
}

.form-note {
    background-color: rgba(151, 71, 255, 0.1);
    border-left: 3px solid var(--secondary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Dashboard Styles */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

.sidebar {
    background-color: var(--dark-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: fit-content;
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info h3 {
    margin-bottom: 0.5rem;
}

.balance {
    font-size: 1.5rem;
    color: var(--warning-color);
    margin: 0.5rem 0;
}

.menu {
    list-style: none;
}

.menu li {
    margin-bottom: 0.5rem;
}

.menu a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--light-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.menu a:hover, .menu a.active {
    background-color: rgba(74, 110, 224, 0.2);
    color: var(--primary-color);
}

.main-panel {
    background-color: var(--dark-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Search Section */
.search-container {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
}

.search-cost {
    font-size: 0.9rem;
    color: var(--warning-color);
    margin-top: 0.5rem;
}

.search-results {
    background-color: rgba(30, 34, 53, 0.7);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th, .data-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background-color: rgba(30, 34, 53, 0.7);
    color: var(--primary-color);
}

.data-table tbody tr {
    transition: background-color 0.3s ease;
}

.data-table tbody tr:hover {
    background-color: rgba(30, 34, 53, 0.7);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border-left: 3px solid var(--success-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-left: 3px solid var(--warning-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-left: 3px solid var(--danger-color);
}

/* Admin Dashboard Special Styles */
.admin-dashboard .sidebar {
    background-color: rgba(151, 71, 255, 0.1);
}

.admin-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        background: var(--dark-color) !important;
        box-sizing: border-box !important;
    }
    .container,
    .dashboard,
    .main-content,
    .main-panel,
    .search-results,
    .search-results-container,
    .database-section,
    .result-card,
    .data-table-container,
    .data-table,
    .results-table {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }
    .dashboard,
    .main-panel,
    .main-content {
        display: block !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    .search-results {
        padding: 0;
        margin: 0;
        width: 100vw;
        max-width: 100vw;
    }
    .result-card {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
    .data-table, .data-table-container, .results-table {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
    }
    .features {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* QR Code responsiveness for mobile */
    #qrcode-container img {
        max-width: 100%;
        height: auto;
        width: 200px !important;
        height: 200px !important;
    }
    
    .upi-qr-container {
        padding: 10px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .container {
        width: 100%;
        max-width: 100vw;
        padding: 0.5rem 0;
    }
    .main-content, .search-results {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .result-card {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
    .search-results-container,
    .database-section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-radius: 0 !important;
    }
    .result-card,
    .data-table,
    .data-table-container,
    .results-table {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem 0;
    opacity: 0.7;
}

/* Loader */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Make panel headings visible and readable */
.panel-header h2 {
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.card-header {
    color: #222;
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Card view for search results (mobile) */
.result-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.result-card {
    background: var(--dark-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem 1.2rem;
    color: var(--light-color);
    border: 1px solid rgba(74, 110, 224, 0.08);
    transition: box-shadow 0.2s;
}

.result-card-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
}

.result-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.result-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.98rem;
}

.result-card-row:last-child {
    border-bottom: none;
}

.result-card-key {
    color: var(--secondary-color);
    font-weight: 500;
    margin-right: 0.7rem;
    min-width: 90px;
    word-break: break-all;
}

.result-card-value {
    color: var(--light-color);
    word-break: break-all;
    text-align: right;
    flex: 1;
}

@media (min-width: 769px) {
    .result-cards, .result-card {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .data-table {
        display: none !important;
    }
} 