/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}
  
/* Navbar Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2a2a;
    color: #fff;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1abc9c;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background: #34495e;
    min-width: 160px;
    top: 100%;
    right: 0;
    list-style: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    padding: 12px 16px;
    display: block;
    color: #fff;
}

.dropdown-content li a:hover {
    color: white;
    background: #1abc9c;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: #fff;
    text-align: center;
    padding: 60px 30px;
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tool Area */
.tool-area {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.tool-box {
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
    animation: slideUp 0.7s ease;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #00aaff;
    border-radius: 10px;
    padding: 40px 20px;
    background: #f8fcff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #008ecc;
    background: #f0f9ff;
}

.upload-content svg {
    color: #00aaff;
    margin-bottom: 15px;
}

.upload-content h3 {
    color: #00aaff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.upload-content p {
    margin: 10px 0;
    color: #666;
}

.upload-info {
    font-size: 0.9rem !important;
    color: #999 !important;
    margin-top: 15px !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-secondary {
    background: #00aaff;
    color: white;
}

.btn-secondary:hover {
    background: #008ecc;
}

.btn-primary {
    background: #00aaff;
    color: white;
}

.btn-primary:hover {
    background: #008ecc;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    margin: 20px 0;
}

.btn-download {
    background: #1abc9c;
    color: white;
    margin: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
    padding: 15px 20px;
}

.btn-download:hover {
    background: #16a085;
}

.format-desc {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Action Section */
.action-section {
    margin: 30px 0;
}

/* Processing Status */
.processing-status {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #00aaff;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e3f2fd;
    border-top: 2px solid #00aaff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Preview Section */
.preview-section {
    margin: 30px 0;
}

.preview-container {
    margin: 20px 0;
}

.preview-box {
    background: #f8fcff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.preview-box h3 {
    color: #00aaff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.image-container {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="10" height="10" fill="%23f1f1f1"/><rect x="10" y="10" width="10" height="10" fill="%23f1f1f1"/></svg>');
    border-radius: 8px;
    padding: 20px;
    display: inline-block;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Download Section */
.download-section {
    margin: 30px 0;
}

.download-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error Message */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 400px;
    text-align: center;
}

.error-content svg {
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-content p {
    margin: 15px 0;
    color: #333;
}

/* Content Section */
.content {
    background: #e8f6ff;
    padding: 50px 20px;
    animation: fadeIn 0.8s ease;
}

.tool-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.content h2 {
    font-size: 1.8rem;
    color: #008ecc;
    margin-bottom: 20px;
    font-weight: 600;
}

.content p {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.content ul li {
    margin-bottom: 14px;
    padding-left: 32px;
    position: relative;
    line-height: 1.6;
    color: #333;
}

.content ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00aaff;
    font-weight: bold;
}

/* Internal Section Styling */
.internal {
  background: linear-gradient(135deg, #f9fcff, #e6f2ff);
  border: 1px solid #cfdfff;
  padding: 20px;
  margin: 40px auto;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 720px;
  transition: all 0.3s ease-in-out;
}

.internal:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.internal p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

.internal a {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.internal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #007bff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.internal a:hover {
  color: #0056cc;
}

.internal a:hover::after {
  transform: scaleX(1);
}

/* Footer */
.footer {
    background: #0f172a;
    color: #f1f5f9;
    padding: 24px 16px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: auto;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #38bdf8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 4px 0;
}

.footer-column ul li a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    line-height: 1.3;
}

.footer-column ul li a:hover {
    color: #38bdf8;
}

.footer-bottom {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #334155;
    font-size: 13px;
    color: #94a3b8;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive - Mobile navbar controls removed */
@media (max-width: 768px) {
    .tool-box {
        padding: 20px;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-download {
        width: 100%;
        max-width: 250px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}