* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c1445 0%, #1a1f3a 50%, #2d3561 100%);
    color: #e1e5f2;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #64b5f6, #42a5f5, #29b6f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 30px;
}

.debug-panel {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    font-family: monospace;
    font-size: 0.9rem;
}

.debug-panel h4 {
    color: #64b5f6;
    margin-bottom: 10px;
}

.debug-info {
    color: #94a3b8;
    line-height: 1.4;
}

.converter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.converter-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.converter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(100, 181, 246, 0.3);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.pdf-icon {
    color: #ef4444;
}

.word-icon {
    color: #2563eb;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.card-description {
    color: #94a3b8;
    font-size: 0.9rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
}

.upload-area {
    border: 2px dashed rgba(100, 181, 246, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
    margin-bottom: 20px;
    position: relative;
}

.upload-area:hover {
    border-color: #64b5f6;
    background: rgba(100, 181, 246, 0.05);
}

.upload-area.dragover {
    border-color: #42a5f5;
    background: rgba(100, 181, 246, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2.5rem;
    color: #64b5f6;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.upload-subtext {
    color: #64748b;
    font-size: 0.9rem;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.convert-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.convert-btn:hover {
    background: linear-gradient(45deg, #42a5f5, #1e88e5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 181, 246, 0.3);
}

.convert-btn:disabled {
    background: #374151;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.progress-container {
    margin: 20px 0;
    display: none;
}

.progress-container.visible {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(100, 181, 246, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #64b5f6, #42a5f5);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.file-info {
    display: none;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #64b5f6;
}

.file-info.visible {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.file-name {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-size {
    color: #94a3b8;
    font-size: 0.85rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
    max-width: 400px;
    word-wrap: break-word;
}

.notification.success {
    background: linear-gradient(45deg, #10b981, #059669);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .converter-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}