/* Mobile-first CSS for MDCAN Conference Receipt Generator */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

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

.conference-details,
.conference-venue {
    font-size: 0.95rem;
    margin: 5px 0;
    opacity: 0.95;
    font-weight: 500;
}

.conference-details {
    color: #f0f8ff;
}

.conference-venue {
    font-style: italic;
    margin-bottom: 15px;
}

.header h2 {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

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

/* Form Styles */
.form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c5aa0;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
    background-color: white;
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

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

/* Preview Section */
.preview-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.preview-section h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.receipt-preview {
    background: white;
    border: 2px solid #2c5aa0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
    line-height: 1.8;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.receipt-logo {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.receipt-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.receipt-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.receipt-body {
    margin-bottom: 20px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.receipt-label {
    font-weight: bold;
    color: #333;
}

.receipt-value {
    color: #666;
}

.receipt-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5aa0;
    border-top: 2px solid #2c5aa0;
    padding-top: 10px;
}

.receipt-footer {
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 15px;
    font-size: 0.8rem;
    color: #666;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.download-btn,
.edit-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: linear-gradient(135deg, #28a745, #20833a);
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.edit-btn {
    background: #6c757d;
    color: white;
}

.edit-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 0.85rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 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: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        margin: 0 auto;
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .conference-details,
    .conference-venue {
        font-size: 1.1rem;
    }
    
    .header h2 {
        font-size: 1.3rem;
    }
    
    .logo {
        width: 100px;
    }
    
    .main {
        padding: 35px;
    }
    
    .button-group {
        flex-direction: row;
    }
    
    .download-btn,
    .edit-btn {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 700px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .conference-details,
    .conference-venue {
        font-size: 1.2rem;
    }
    
    .header h2 {
        font-size: 1.4rem;
    }
    
    .logo {
        width: 120px;
    }
}