/* General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header h1 i {
    margin-right: 10px;
}

header p {
    margin: 5px 0 0;
    font-size: 1.1em;
}

/* Main Content */
main {
    flex: 1;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    margin: 0;
    font-size: 1.8em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

h2 i {
    margin-right: 10px;
}

/* Upload Section */
#upload-section {
    background: white;
    border-radius: 12px 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

input[type="file"] {
    display: block;
    margin-bottom: 20px;
    font-size: 1em;
}

button {
    padding: 12px 24px;
    font-size: 1.2em;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button i {
    margin-right: 10px;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Progress Section */
#progress-section, #result-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
}

/*#progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}*/ 

.hidden{
    display: none;
}

#progress-bar-fill {
    height: 20px;
    background-color: #007bff;
    width: 0;
    transition: width 0.4s ease;
}

#progress-text {
    font-size: 1.1em;
    color: #555;
}

#loading-gif, #success-gif {
    display: block;
    max-width: 100%;
    margin: 20px auto;
}

/* Result Section */
#result-section a {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.2em;
    color: white;
    background-color: #28a745;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#result-section a i {
    margin-right: 10px;
}

#result-section a:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

#result-section a:active {
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
   /* width: 100%; */
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }

    main {
        padding: 15px;
    }

    button, #result-section a {
        padding: 10px 20px;
        font-size: 1em;
    }

    #progress-bar {
        height: 15px;
    }

    #progress-bar-fill {
        height: 15px;
    }
}
