/* style.css */
/* ======================
   Base Styles & Reset
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f0f2f5;
    color: #2c3e50;
    line-height: 1.6;
    padding-top: 80px; /* Offset for fixed header */
}

/* ======================
   Header Styles
   ====================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #3498db;
    color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 40px;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.9;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-content {
    display: flex;
    gap: 2rem;
}

.language-select {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ======================
   Hero Section
   ====================== */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: #3498db;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-upload {
    background: #e74c3c;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
    margin: 1rem 0;
}

.btn-upload:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
    opacity: 0.9;
}

/* ======================
   Tools Container
   ====================== */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.tool-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tool-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ======================
   Form Elements
   ====================== */
.file-input {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border: 2px dashed #3498db;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-input:hover {
    border-color: #2980b9;
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: #4CAF50;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.num-input,
.select-input,
.text-input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

/* ======================
   Text Output
   ====================== */
.text-output {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    font-family: monospace;
    white-space: pre-wrap;
}

/* ======================
   Footer Styles
   ====================== */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 4rem 5%;
    margin-top: 4rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: #ecf0f1;
}

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin: 0.8rem 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #3498db;
}

.security-info {
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

/* ======================
   Notifications & Loading
   ====================== */
#system-alerts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s forwards;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification.success {
    background: #4CAF50;
    border-left: 5px solid #45a049;
}

.notification.error {
    background: #f44336;
    border-left: 5px solid #d32f2f;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(3px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.spinner {
    border: 4px solid rgba(52, 152, 219, 0.2);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* ======================
   Mobile Responsiveness
   ====================== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .tools-container {
        grid-template-columns: 1fr;
        padding: 2rem 5%;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .language-select {
        padding: 0.5rem;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
