/* PDF2WORDS - Blue/White Theme Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Header */
.top-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #4A5FFF;
    text-decoration: none;
}

/* Donation Banner */
.donation-banner {
    background: #4A5FFF;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 16px;
}

/* Main Container */
.main-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-box {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.hero-image {
    max-width: 250px;
    margin: 0 auto 30px;
    display: block;
}

h1 {
    color: #4A5FFF;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}

/* Form Section */
h2 {
    color: #4A5FFF;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.form-container {
    background: #f8f9ff;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 30px;
}

label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

input[type="email"],
input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e6ff;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s;
    background: #fff;
}

input[type="email"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #4A5FFF;
    box-shadow: 0 0 0 3px rgba(74,95,255,0.1);
}

#pdf-preview {
    display: none;
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    border: 2px solid #e0e6ff;
    border-radius: 10px;
}

input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #4A5FFF 0%, #3d4ecc 100%);
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74,95,255,0.4);
}

/* Loading Spinner */
.loading {
    display: none;
    margin: 30px auto;
    text-align: center;
}

.loading .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4A5FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Sections */
.content-box {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

h3 {
    color: #4A5FFF;
    font-size: 22px;
    margin-bottom: 15px;
}

p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e0e6ff;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74,95,255,0.2);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.feature-card h4 {
    color: #4A5FFF;
    margin-bottom: 8px;
    font-size: 18px;
}

.feature-card p {
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Result Page Styles */
.result-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-top: 40px;
}

.user-info {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #4A5FFF;
}

.user-info p {
    margin: 5px 0;
    color: #555;
}

.user-info a {
    color: #4A5FFF;
    text-decoration: none;
    font-weight: 600;
}

.message {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    font-size: 18px;
}

.download-button {
    text-align: center;
    margin: 30px 0;
}

.download-button a {
    display: inline-block;
    background: linear-gradient(135deg, #4A5FFF 0%, #3d4ecc 100%);
    color: #fff;
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
}

.download-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74,95,255,0.4);
}

.support-section {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
}

.support-section h3 {
    color: #4A5FFF;
    margin-bottom: 15px;
}

.privacy-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.privacy-notice h4 {
    color: #856404;
    margin-bottom: 10px;
}

.privacy-notice p {
    color: #856404;
    line-height: 1.6;
    margin: 8px 0;
    text-align: justify;
}

.back-button {
    text-align: center;
    margin: 30px 0;
}

.back-button a {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.back-button a:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    
    .hero-box,
    .form-container,
    .content-box,
    .result-box {
        padding: 25px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .hero-box,
    .form-container,
    .content-box,
    .result-box {
        padding: 20px;
    }
    
    input[type="submit"] {
        font-size: 16px;
    }
    
    .message {
        font-size: 16px;
    }
}