/* Custom Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: break-word;
    word-wrap: break-word;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    color: #ffffff;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link.active {
    color: #ffffff;
    border-bottom-color: #ffd700;
    background-color: rgba(255, 255, 255, 0.15);
}

.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.container mt-5 {
    overflow-x: hidden;
}

.card-body {
    padding: 2rem;
    overflow-x: hidden;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'JetBrains Mono', 'Courier New', 'Monaco', 'Menlo', monospace;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-all;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

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

.form-control[readonly] {
    background-color: #f8f9fa;
    color: #212529;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.btn-group {
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    flex: 1 1 auto;
    min-width: 80px;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-info:hover {
    background-color: #0ba5d0;
    border-color: #0ba5d0;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #5c636a;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #ffb800;
    border-color: #ffb800;
}

footer {
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #198754;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .btn-group {
        flex-wrap: wrap;
    }

    .btn-group .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: unset;
    }

    .card-body {
        padding: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .form-control {
        max-width: 100%;
    }
}