/* Main Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
}

.navbar-brand i {
    margin-right: 10px;
}

/* Converter Tabs */
.converter-tab {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.converter-tab h4 {
    color: #2c3e50;
    border-bottom: 2px solid;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.converter-tab h4 i {
    margin-right: 10px;
}

/* Result Boxes */
.result-box {
    background: #f8f9fa;
    border-left: 4px solid #0d0d0e;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.result-box.bg-success {
    border-left-color: #198754;
}

.result-box.bg-danger {
    border-left-color: #dc3545;
}

.result-box.bg-info {
    border-left-color: #0dcaf0;
}

.result-box.bg-warning {
    border-left-color: #ffc107;
}

/* File Drop Zones */
.file-drop-zone {
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(248, 249, 250, 0.5);
}

.file-drop-zone:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.file-drop-zone i {
    margin-bottom: 15px;
    opacity: 0.7;
}

/* Format Badges */
.badge-format {
    padding: 5px 10px;
    border-radius: 15px;
    margin-bottom: 5px;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 6px;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(to right, #0d6efd, #0a58ca);
    border: none;
}

.btn-success {
    background: linear-gradient(to right, #198754, #146c43);
    border: none;
}

.btn-info {
    background: linear-gradient(to right, #0dcaf0, #0aa2c0);
    border: none;
}

.btn-warning {
    background: linear-gradient(to right, #ffc107, #e0a800);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Tables */
.table-sm {
    font-size: 0.9em;
}

.table-sm td {
    padding: 5px 10px;
}

/* List Groups */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}
/* Responsive */
@media (max-width: 768px) {
    .converter-tab {
        padding: 15px;
    }
    
    .file-drop-zone {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* Animation for tab switching */
.tab-pane {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}