/* Email to ICS Converter Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.input-section, .output-section {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

.email-input {
    width: 100%;
    height: 300px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.convert-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.convert-btn:active {
    transform: translateY(0);
}

.ai-options {
    margin-top: 20px;
}

.ai-options label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ai-provider {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-provider-row {
    display: flex;
    gap: 10px;
}

.ai-provider select, .ai-provider input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.ai-provider input {
    flex: 1;
}

.openrouter-model-container {
    display: none;
}

.openrouter-model-container select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.openrouter-model-container small {
    color: #6b7280;
    margin-top: 5px;
    display: block;
}

.event-preview {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.event-field {
    margin-bottom: 15px;
}

.event-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.event-field input, .event-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
}

.event-field textarea {
    height: 80px;
    resize: vertical;
}

.download-btn {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 20px;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.tips {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.tips h3 {
    color: #1e40af;
    margin-bottom: 10px;
}

.tips ul {
    list-style: none;
    color: #1e40af;
}

.tips li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.tips li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

.status {
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: 500;
}

.status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }
}