/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #b8b8b8;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 400;
    line-height: 1.5;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Form styles */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    margin: 30px 0;
    width: 100%;
    max-width: 1000px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
}

input[type="text"], 
input[type="email"], 
input[type="file"],
textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input[type="text"]:focus, 
input[type="email"]:focus,
input[type="file"]:focus,
textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

input[type="file"] {
    padding: 12px 20px;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Table styles */
.events-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin: 30px 0;
}

.events-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.events-table th,
.events-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

/* Column widths: Title | Date | Remove */
.events-table th:nth-child(1),
.events-table td:nth-child(1) {
    width: 60%;
}

.events-table th:nth-child(2),
.events-table td:nth-child(2) {
    width: 25%;
}

.events-table th:nth-child(3),
.events-table td:nth-child(3) {
    width: 15%;
    text-align: center;
}

.events-table th {
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-table tr:last-child td {
    border-bottom: none;
}

.events-table input[type="text"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.events-table input[type="text"]:focus {
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.events-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6b6b;
}

/* Message styles */
.message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #ffb3b3;
    font-size: 0.95rem;
}

.message.success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
}

/* User info */
.user-email {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 24px;
    margin: 20px 0;
    color: #e0e0e0;
    font-size: 0.95rem;
    display: inline-block;
}

/* Feedback modal */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.feedback-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(20px);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #b8b8b8;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Floating feedback button */
.feedback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 40px 16px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .feedback-content {
        padding: 30px 20px;
    }
    
    .events-table th,
    .events-table td {
        padding: 12px 16px;
    }
    
    .feedback-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeInUp 0.6s ease-out;
}

.container > *:nth-child(2) {
    animation-delay: 0.1s;
}

.container > *:nth-child(3) {
    animation-delay: 0.2s;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b6b;
    animation: spin 1s ease-in-out infinite;
}

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

/* Paywall styles */
.usage-stats {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
}

.usage-stats h3 {
    color: #e0e0e0;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.usage-stats p {
    color: #b8b8b8;
    margin: 8px 0;
    font-size: 1rem;
}

.premium-offer {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 36, 0.1) 100%);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 32px;
    margin: 30px 0;
    text-align: center;
}

.premium-offer h2 {
    color: #ff6b6b;
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #ff6b6b;
    margin: 20px 0;
}

.price-subtitle {
    color: #b8b8b8;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}

.benefits li {
    color: #e0e0e0;
    margin: 12px 0;
    font-size: 1rem;
    padding-left: 0;
}

.benefits li::before {
    content: "✅ ";
    margin-right: 8px;
}

/* Upload counter */
.upload-counter {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 20px;
    margin: 10px 0;
    color: #e0e0e0;
    font-size: 0.9rem;
    display: inline-block;
}
