/* Custom Styles for ACN Cyber Incident Vector Tool */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0.5rem 1rem;
    min-height: 50px;
}

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

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

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

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

/* Form Select Styling */
.form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

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

/* Description Box */
.description-box {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Progress Bar */
.progress {
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

/* Tab Styling */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link.category-tab {
    color: #495057;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link.category-tab:hover {
    border-bottom-color: var(--category-color);
    color: var(--category-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.nav-tabs .nav-link.category-tab.active {
    color: var(--category-color);
    background-color: transparent;
    border-bottom-color: var(--category-color);
    font-weight: 600;
}

/* Category Header Styling */
.category-header {
    transition: opacity 0.2s ease;
}

.category-header:hover {
    opacity: 0.9;
}

/* Navbar Category Links */
.navbar-category-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-category-link:hover {
    color: var(--category-color) !important;
}

.navbar-category-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--category-color);
}

/* Vector Output Styling */
#vectorResult pre {
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Button Styling */
.btn {
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.95rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .card-header h6 {
        font-size: 0.875rem;
    }
    
    #vectorResult pre {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
}

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

.tab-pane {
    animation: fadeIn 0.3s ease;
}

/* Selected Item Highlight */
.form-select:not(:invalid) {
    border-color: var(--success-color);
}

/* Scrollbar Styling */
pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

pre::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

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

/* Success Message */
.alert-success {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer spacing */
.mb-5 {
    margin-bottom: 3rem !important;
}

/* Main content wrapper for flexbox */
.container-fluid {
    flex: 1;
}

/* Footer Bar */
.footer-bar {
    background-color: #212529;
    border-top: 1px solid #343a40;
    padding: 1rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-bar .text-muted {
    color: #adb5bd !important;
    font-size: 0.875rem;
}

.footer-bar .footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bar .footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bar strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-bar {
        padding: 0.75rem 0;
    }
    
    .footer-bar .text-muted {
        font-size: 0.75rem;
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* Introduction Section */
.introduction-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
}

.introduction-card h2 {
    color: #212529;
    font-weight: 700;
}

.introduction-card .lead {
    color: #495057;
    font-size: 1.15rem;
}

/* About and Contacts Sections */
#aboutSection .card,
#contactsSection .card {
    animation: fadeIn 0.5s ease;
}

#aboutSection .card-body ul {
    line-height: 2;
}

#contactsSection .card-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

#contactsSection .card-body a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive adjustments for introduction */
@media (max-width: 768px) {
    .introduction-card {
        padding: 1.5rem !important;
    }
    
    .introduction-card h2 {
        font-size: 1.5rem;
    }
    
    .introduction-card .lead {
        font-size: 1rem;
    }
}

