/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 2rem 0;
    text-align: center;
}

.logo-container {
    display: inline-block;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo {
    max-height: 180px;
    width: auto;
    display: block;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #2d5a3d;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Waitlist section */
.waitlist-section {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
    border: 1px solid rgba(45, 90, 61, 0.1);
}

.waitlist-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d5a3d;
    margin-bottom: 1rem;
}

.waitlist-description {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Form styles */
.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#email {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#email:focus {
    outline: none;
    border-color: #2d5a3d;
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3d2a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    position: relative;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form message */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Features preview */
.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d5a3d;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: white;
    color: #2d5a3d;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: #2d5a3d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

.social-link:hover {
    background: #2d5a3d;
    color: white;
    border-color: #2d5a3d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.2);
}

.social-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .waitlist-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .features-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .waitlist-title {
        font-size: 1.75rem;
    }
    
    .logo {
        max-height: 140px;
    }
    
    .logo-container {
        padding: 1rem;
    }
}

/* Animation for loading state */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    display: inline-block;
    animation: spin 1s ease-in-out infinite;
}

/* Navigation Header */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #2d5a3d;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: block;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #1e3d2a;
}

.btn-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.form-inline {
    margin: 0;
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0.5rem 15px;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .navbar-nav {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Admin Pages Styling */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d5a3d;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.admin-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.message-banner {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid;
}

.message-banner.success {
    border-left-color: #28a745;
    background: linear-gradient(to right, rgba(40, 167, 69, 0.05), white);
}

.message-banner.error {
    border-left-color: #dc3545;
    background: linear-gradient(to right, rgba(220, 53, 69, 0.05), white);
}

.message-banner.success .message-text {
    color: #155724;
}

.message-banner.error .message-text {
    color: #721c24;
}

.message-text {
    font-weight: 500;
    flex: 1;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.admin-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.admin-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.admin-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-card-disabled:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-header-custom {
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3d2a 100%);
    color: white;
    padding: 1.5rem;
    border: none;
}

.card-header-custom h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.card-body-custom {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label-custom {
    display: block;
    font-weight: 600;
    color: #2d5a3d;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #2d5a3d;
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.btn-custom {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-add {
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3d2a 100%);
    color: white;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.3);
}

.btn-remove {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: white;
}

.btn-remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-custom:active {
    transform: translateY(0);
}

.validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.users-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table-header {
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3d2a 100%);
    color: white;
    padding: 1.5rem 2rem;
}

.table-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: #f8f9fa;
}

.users-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #2d5a3d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

.users-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.users-table tbody tr {
    transition: background-color 0.2s ease;
}

.users-table tbody tr:hover {
    background-color: #f8f9fa;
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.badge-custom {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.badge-admin {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: white;
}

.badge-user {
    background: #6c757d;
    color: white;
}

.badge-yes {
    background: #28a745;
    color: white;
}

.badge-no {
    background: #ffc107;
    color: #000;
}

.badge-primary {
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3d2a 100%);
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

/* Responsive adjustments for admin pages */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .admin-container {
        padding: 1.5rem 15px;
    }

    .admin-title {
        font-size: 2rem;
    }

    .card-body-custom {
        padding: 1.5rem;
    }

    .users-table {
        font-size: 0.9rem;
    }

    .users-table th,
    .users-table td {
        padding: 0.75rem 1rem;
    }
}