:root {
    --primary-color: #2e7d32;
    --secondary-color: #f57c00;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-color: #333333;
    --gray: #666666;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

/* Header */
header {
    background: #1e293b;
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

header.header-light {
    background: #ffffff;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

header.header-light h1, header.header-light a, header.header-light p {
    color: #1e293b !important;
}

header.header-light nav ul li a:hover {
    color: var(--primary-color) !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 10px;
    padding: 0 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 12px;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap !important;
}

nav ul li {
    margin-left: 0;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Keep text on one line */
}

/* Responsive Menu Tweaks */
@media (max-width: 992px) {
    .header-container { flex-direction: row; }
}

@media (max-width: 600px) {
    .header-container { flex-direction: row; gap: 5px; }
    nav ul { gap: 5px; }
    nav ul li a { font-size: 0.85rem; gap: 4px; }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 4px;
        gap: 2px;
    }
    .logo h1 { display: none; } 
    .logo img { max-height: 28px !important; margin-right: 4px !important; }
    nav ul { gap: 2px; }
    nav ul li a { font-size: 0.9rem; gap: 1px; padding: 4px 4px; }
    nav ul li a i { font-size: 0.75rem; }
}

@media (max-width: 380px) {
    nav ul { gap: 6px; }
    nav ul li a { font-size: 0.75rem; }
}

.header-info {
    text-align: right;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    height: 650px;
    width: 100%;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: 100% 100% !important;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .hero {
        height: 270px;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.main-content-section {
    background: #fff;
    margin-top: 0;
    border-radius: 0;
    position: relative;
    z-index: 10;
    padding: 60px 0;
}

@media (max-width: 768px) {
    .main-content-section {
        margin-top: 0;
        border-radius: 0;
        padding: 40px 0;
    }
}

.main-content {
    padding: 60px 0;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.udyam {
    margin-top: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:active {
    transform: scale(0.96); /* Tap feedback */
}

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

.btn-primary:hover {
    background-color: #f8fafc;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-color), #1b5e20);
    color: var(--white);
}

.btn-secondary:hover {
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: underline;
}

/* Form Styles */
.form-container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-title {
    background: #2979ff;
    color: var(--white);
    padding: 15px 30px;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -40px -40px 30px -40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.full-width {
    grid-column: span 2;
}

.qr-section {
    text-align: center;
    padding: 20px;
    border: 1px dashed #2979ff;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.qr-section img {
    max-width: 200px;
    margin-bottom: 10px;
}

/* ID Card Preview */
.id-preview-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.id-card {
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
}

/* Admin Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
    padding: 30px;
    border-radius: var(--radius);
    color: var(--white);
    text-align: center;
}

.stat-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.stat-card .value { font-size: 3rem; font-weight: 700; }

.bg-blue { background-color: #2979ff; }
.bg-green { background-color: #43a047; }
.bg-yellow { background-color: #ffb300; }
.bg-red { background-color: #e53935; }

.table-container {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

@media (max-width: 768px) {
    .table-container { padding: 15px; }
    table { min-width: 600px; }
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-approved { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff8e1; color: #f57c00; }
.status-rejected { background: #ffebee; color: #c62828; }

/* Admin Dashboard Premium Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #1e293b;
    color: #f8fafc;
    transition: all 0.3s ease;
    z-index: 1001;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    padding: 20px 0;
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-menu li a i {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: #334155;
    color: #fff;
    border-left: 4px solid var(--secondary-color);
}

.main-content-wrapper {
    flex: 1;
    background: #f1f5f9;
    overflow-x: hidden;
}

.top-bar {
    background: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e293b;
    padding: 10px;
}

.admin-body {
    padding: 30px;
}

@media (max-width: 768px) {
    .admin-body { padding: 15px; }
}

.premium-card {
    background: #fff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.premium-stat {
    position: relative;
    overflow: hidden;
}

.premium-stat i {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-container { flex-direction: column; text-align: center; gap: 15px; }
    nav ul { justify-content: center; flex-wrap: wrap; }
    .hero-content h2 { font-size: 2.5rem !important; }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .grid { grid-template-columns: 1fr; }
    .header-info { display: none; }
    .hero { padding: 0; }
    .hero-content h2 { font-size: 2rem !important; }
    .hero-content p { font-size: 1.1rem !important; }
    .main-content { margin-top: 0; border-radius: 0; }
    .card.glass { padding: 30px !important; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-contact { text-align: center; }
}

@media (max-width: 480px) {
    .logo h1 { display: none; }
    .btn { width: 100%; text-align: center; }
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100vh;
    }
    .sidebar.active {
        left: 0 !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.2);
    }
    .mobile-toggle {
        display: block !important;
    }
    .main-content-wrapper {
        width: 100%;
    }
    .top-bar { padding: 0 15px; }
    .user-profile { display: none; }
    .top-bar-title h2 { font-size: 1.2rem; }
}

/* Premium Enhancements */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.hero-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card {
    border: none;
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Camera Modal Styles */
.camera-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.camera-container {
    background: #000;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

#video {
    width: 100%;
    display: block;
}

.camera-controls {
    padding: 20px;
    background: #1e293b;
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    border-radius: 0 0 20px 20px;
}

#canvas {
    display: none;
}

.capture-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid #3b82f6;
    cursor: pointer;
    transition: transform 0.2s;
}

.capture-btn:active {
    transform: scale(0.9);
}

.close-camera {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

/* Footer RK Update */
.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
