/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Montserrat:wght@500;600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

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

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    font-size: 16px;
}

@media (min-width: 768px) {
    body {
        font-size: 17px;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }
}

h1, h2 {
    font-family: 'Lora', serif;
}

h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1000px;
        padding: 30px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1100px;
        padding: 40px;
    }
}

header {
    background: #2c3e50;
    color: white;
    padding: 0;
    margin-bottom: 30px;
    border-radius: 0 0 0px 0px;
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    header {
        margin-bottom: 40px;
    }
}

@media (min-width: 1440px) {
    header {
        margin-bottom: 50px;
    }
}

header h1 {
    font-size: 2em;
}

@media (min-width: 768px) {
    header h1 {
        font-size: 2.3em;
    }
}

@media (min-width: 1024px) {
    header h1 {
        font-size: 2.6em;
    }
}

/* Header Wrapper Layout */
.header-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 1024px) {
    .header-wrapper {
        max-width: 1000px;
        padding: 30px;
    }
}

@media (min-width: 1440px) {
    .header-wrapper {
        max-width: 1100px;
        padding: 40px;
    }
}

/* Cards */
.card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .card {
        padding: 35px;
        margin-bottom: 25px;
    }
}

@media (min-width: 1024px) {
    .card {
        padding: 40px;
        margin-bottom: 30px;
    }
}

/* Form Elements */
input, textarea, button, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
}

@media (min-width: 768px) {
    input, textarea, button, select {
        padding: 14px;
        font-size: 17px;
    }
}

@media (min-width: 1024px) {
    input, textarea, button, select {
        padding: 16px;
        font-size: 18px;
    }
}

button {
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: inherit;
}

button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Button link styling */
.btn-link {
    display: inline-block;
    width: auto;
    padding: 12px;
    margin: 10px 0;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-link.btn-secondary {
    background: #95a5a6;
}

.btn-link.btn-secondary:hover {
    background: #7f8c8d;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    font-size: inherit;
}

@media (min-width: 768px) {
    label {
        margin-top: 20px;
    }
}

@media (min-width: 1024px) {
    label {
        margin-top: 25px;
    }
}

/* Alerts */
.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 16px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Time Slots */
.time-slots {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.slot-item {
    padding: 12px;
    background: #ecf0f1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .slot-item {
        padding: 15px;
    }
}

@media (min-width: 1024px) {
    .slot-item {
        padding: 18px;
    }
}

.slot-item:hover {
    background: #d5dbdb;
    transform: scale(1.02);
}

.slot-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

.slot-item-info {
    flex: 1;
}

.slot-item-votes {
    flex-shrink: 0;
    margin-left: 10px;
    display: inline-block;
    padding: 2px 8px;
    background-color: #e3f2fd;
    border-radius: 12px;
    font-size: 0.9em;
    color: #1976d2;
    font-weight: 500;
}

/* Responses */
.response {
    padding: 15px;
    background: #f8f9fa;
    margin: 10px 0;
    border-radius: 16px;
    border-left: 4px solid #3498db;
}

/* Link Box */
.link-box {
    background: #fff3cd;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #ffc107;
    margin: 15px 0;
    word-break: break-all;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Organizer Badge (from manage.html) */
.organizer-badge {
    background: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 15px;
}

/* Stat Box (from manage.html) */
.stat-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: #e3f2fd;
    padding: 15px 25px;
    border-radius: 8px;
    margin: 10px 10px 10px 0;
    text-align: center;
    height: 100px;
    min-width: 120px;
}

.stat-box .number {
    font-size: 2em;
    font-weight: bold;
    color: #1976d2;
    line-height: 1.2;
}

.stat-box .label {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
    line-height: 1.2;
}

/* Slot Analysis (from manage.html) */
.slot-analysis {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slot-analysis.best {
    border-left-color: #27ae60;
    background: #e8f5e9;
}

.slot-analysis-votes {
    text-align: right;
    flex-shrink: 0;
    margin-left: 20px;
    white-space: nowrap;
}

/* Participant List (from manage.html) */
.participant-list {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
}

/* Finalize Section (from manage.html) */
.finalize-section {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #ffc107;
}

/* Event Info Box */
.event-info-box {
    background: #e8f5e9;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.event-info-box h4 {
    margin-top: 0;
    color: #27ae60;
}

.event-info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1em;
    color: #333;
}

/* Checkbox Label */
.checkbox-label {
    padding: 10px;
    background: #ecf0f1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.checkbox-label:hover {
    background: #d5dbdb;
    transform: scale(1.02);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Optional Field Styling */
input.optional, textarea.optional, select.optional {
    background-color: #f9f5f0;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 0.9em;
    margin-top: 40px;
    border-top: 1px solid #ddd;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

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