
:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #555;
    --border-color: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    margin: 0;
}

header {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

#logo {
    max-height: 50px;
}

main {
    padding: 40px 20px;
}

.features-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.feature-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.feature-card:hover, .feature-card.active {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-card i {
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 0 0 10px 0;
    color: var(--dark-gray);
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.upload-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.upload-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.options {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.upload-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.file-queue {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.file-card-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative; /* This is the key fix */
}

.file-thumbnail {
    height: 160px;
    width: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 10px;
    word-break: break-all;
    flex-grow: 1;
}

.status-container {
    margin-top: auto;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download-item {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background-color: var(--success-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-download-item:hover {
    background-color: #218838;
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s;
}

.remove-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.progress-bar {
    width: 80%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.2s;
}

.processing-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.download-all-container {
    margin-top: 30px;
    text-align: center;
}

.btn-download-all {
    padding: 14px 28px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex; /* To align icon and text */
    align-items: center;
}

.btn-download-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-download-all i {
    margin-right: 8px;
}

footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    color: #6c757d;
    border-top: 1px solid var(--border-color);
}

/* Privacy Policy Section */
.privacy-policy {
    max-width: 900px;
    margin: 40px auto 0;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    cursor: pointer;
}

.privacy-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.privacy-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: inherit;
}

.privacy-chevron {
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.privacy-policy.active .privacy-chevron {
    transform: rotate(180deg);
}

.privacy-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.privacy-policy.active .privacy-content {
    max-height: 500px; /* Adjust if content is taller */
    transition: max-height 0.5s ease-in;
}

.privacy-content-inner {
    padding: 0 30px 20px 30px;
    text-align: left;
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e9ecef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-shield'%3e%3cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 120px;
}

.privacy-content-inner p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 15px;
    text-indent: 2em;
    position: relative; /* Ensure text is on top of the background */
}

.privacy-content-inner strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.privacy-content-inner a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.privacy-content-inner a:hover {
    text-decoration: underline;
}
