/* ಸಿದ್ದೇಶ್ವರ ಯುವಕರ ಪ್ರವಾಸ ಬಳಗ - Attractive Theme */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --accent: #ffd93d;
    --accent-soft: #ffb347;
    --bg-dark: #0c0c0f;
    --bg-card: #16161a;
    --bg-elevated: #1e1e24;
    --text: #f5f5f7;
    --text-muted: #a1a1aa;
    --danger: #ef4444;
    --success: #22c55e;
    --border: rgba(255, 107, 53, 0.2);
    --glow: rgba(255, 107, 53, 0.4);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 53, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 217, 61, 0.05), transparent);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(22, 22, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--primary);
}

.nav-links a, .nav-links span {
    margin-left: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover, #admin-logout:hover {
    color: var(--primary);
    cursor: pointer;
    transform: translateY(-1px);
}

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.12) 0%, transparent 50%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-location {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.registration-section {
    padding-top: 2rem;
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.form-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-dark);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-edit {
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Messages */
.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
}

.message.success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.hidden {
    display: none !important;
}

/* Trip Details Section */
.trip-details-section h2,
.map-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.trip-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px -10px rgba(255, 107, 53, 0.2);
}

.info-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.info-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    font-size: 1rem;
    font-weight: 500;
}

.trip-description {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.trip-description h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.trip-description p {
    color: var(--text-muted);
}

.trip-coordinators {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.trip-coordinators h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.coordinator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.coordinator-card {
    background: var(--bg-dark);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.coordinator-card:hover {
    border-color: var(--primary);
}

.coordinator-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.coordinator-name {
    font-weight: 600;
    color: var(--text);
    margin: 0.25rem 0;
}

.coordinator-mob {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.coordinator-mob:hover {
    text-decoration: underline;
    color: var(--accent);
}

/* Map Section */
.map-section {
    padding-bottom: 4rem;
}

.map-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

#trip-map-container {
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.map-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.legend-marker.start { background: #22c55e; }
.legend-marker.waypoint { background: var(--primary); }
.legend-marker.end { background: #ef4444; }

/* Route Highlights */
.tourist-places-section {
    max-width: 1100px;
}

.tourist-places-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.tourist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.tourist-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.tourist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -15px rgba(255, 107, 53, 0.3);
    border-color: var(--primary);
}

.tourist-image {
    height: 200px;
    overflow: hidden;
}

.tourist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.tourist-card:hover .tourist-image img {
    transform: scale(1.05);
}

.tourist-content {
    padding: 1.25rem;
}

.tourist-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.tourist-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Route Plan */
.route-plan-section {
    max-width: 900px;
}

.route-plan-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.route-plan-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-day {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.route-day:hover {
    border-color: var(--primary);
}

.route-day h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.day-num {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    margin-right: 0.5rem;
    color: white;
}

.route-day p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.route-schedule {
    margin-top: 1rem;
}

.route-schedule p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.schedule-time {
    flex-shrink: 0;
    min-width: 4.5rem;
    color: var(--primary);
    font-weight: 700;
}

.route-staying {
    margin-top: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.route-staying h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.route-staying ul {
    color: var(--text-muted);
    padding-left: 1.25rem;
    line-height: 1.8;
}

.route-tips {
    margin-top: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.route-tips h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.route-tips ul {
    color: var(--text-muted);
    padding-left: 1.25rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-credit {
    margin-top: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

/* Login Screen */
#login-screen {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.login-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

/* Admin Dashboard */
.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-main h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.admin-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.admin-actions {
    margin-bottom: 2rem;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.data-table th {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.data-table .actions {
    display: flex;
    gap: 0.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}

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

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--primary);
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.btn-close:hover {
    color: var(--danger);
}

/* Leaflet overrides */
.leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.leaflet-popup-tip {
    background: var(--bg-card);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}
