/* Import Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #3a7bd5;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #3a6073, #3a7bd5);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #3a6073, #3a7bd5); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    min-height: 100vh;
}

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

/* Header */
header {
    text-align: center;
    padding: 2rem 0;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.welcome-section > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
}

/* Action cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.card-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 3rem;
    color: #3a7bd5;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.card-content p {
    color: #666;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

.card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    padding: 0.4rem 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.features i {
    color: #28a745;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(45deg, #3a7bd5, #3a6073);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2d6cc2, #2d4f5f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #ff5252, #d63031);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #fff;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(45deg, #218838, #1fa087);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Ensure anchor links styled as buttons don't have link styling */
a.btn {
    color: inherit;
    text-decoration: none;
}

a.btn:hover {
    text-decoration: none;
}

a.btn:visited {
    color: inherit;
}

/* Small button variant */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 120px;
}

/* Info section */
.info-section {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-item i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255,255,255,0.8);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Upload page specific styles */
.upload-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin: 0 auto;
    padding: 2rem 0;
}

.upload-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: #3a7bd5;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.info-card li:last-child {
    border-bottom: none;
}

.template-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.template-buttons .btn {
    min-width: 180px;
    justify-content: center;
}

.upload-actions {
    text-align: center;
    margin-top: 1rem;
}

.auth-status {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.auth-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.auth-info i {
    color: #3a7bd5;
}

.upload-details {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
}

.error-details {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8d7da;
    border-radius: 8px;
    color: #721c24;
}

@media (max-width: 1024px) {
    .upload-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .upload-container {
        grid-template-columns: 1fr;
    }
    
    .template-buttons {
        gap: 0.8rem;
    }
    
    .auth-status {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

.upload-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-header p {
    color: #666;
}

.upload-area {
    border: 2px dashed #667eea;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
}

.upload-area.dragover {
    border-color: #28a745;
    background: #f0fff0;
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-subtext {
    color: #666;
    font-size: 0.9rem;
}

.file-input {
    display: none;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name {
    font-weight: 600;
    color: #333;
}

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

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.results-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.success-message {
    color: #28a745;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.error-message {
    color: #dc3545;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-decoration: none;
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.back-button:hover {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
} 