/* Main Styles */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --success: #198754;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light);
    padding-top: 56px; /* For fixed navbar */
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 56px; /* Adjusted for navbar */
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #fff;
}

.sidebar .nav-link {
    font-weight: 500;
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    margin: 0.2rem 1rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
    font-weight: 600;
}

.sidebar .nav-link .bi {
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.sidebar .nav-link:hover .bi {
    transform: translateX(3px);
}

/* Main Content Styles */
main {
    padding-top: 1.5rem;
}

/* Card Styles */
.card {
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.stats-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Table Styles */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    padding: 0.75rem 1rem;
}

.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-action {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
    border-radius: 50%;
}

/* Responsive Sidebar */
@media (max-width: 767.98px) {
    body {
        padding-top: 56px;
    }
    .sidebar {
        position: static;
        height: auto;
        padding-top: 20px;
    }
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    border-color: #dee2e6;
}

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

/* JSON Formatting */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 6px;
    background-color: #f8f9fa;
    font-size: 0.875rem;
}

/* Loading Animation */
.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Toast position fix */
.toast-container {
    z-index: 1070;
}

/* Footer Styles */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    color: var(--gray);
}

/* Swagger Card */
.swagger-card {
    background-color: #f7f7f9;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    animation-delay: 0.5s;
}

/* Swagger Banner */
.swagger-banner {
    animation-delay: 1s;
    min-width: 350px;
}

/* Company Info */
.company-info {
    padding: 1rem;
}

.company-info h6 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-tabs .nav-link {
    border-radius: 0;
    font-weight: 500;
    color: var(--gray);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Animate.css custom duration */
.animate__animated {
    --animate-duration: 0.8s;
}

/* Login Screen Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fb;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 150%;
    height: 150%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0.1) 100%);
    transform: rotate(-12deg);
    z-index: 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: white;
    transition: all 0.3s ease;
}

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

.login-header {
    background: var(--primary-color);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.login-logo {
    max-width: 150px;
    margin-bottom: 15px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

.login-form {
    padding: 30px;
}

.login-form .form-floating {
    margin-bottom: 20px;
}

.login-form .form-control {
    border-radius: 8px;
    min-height: 50px;
    border: 1px solid #e0e0e0;
    padding-left: 15px;
    font-size: 15px;
}

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

.login-btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-footer {
    padding: 15px 30px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}

.login-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
    z-index: 0;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.04) 0%, rgba(13, 110, 253, 0.01) 100%);
}

.animated-background .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    animation: float 15s infinite ease-in-out;
}

.animated-background .shape:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.animated-background .shape:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 20%;
    animation-delay: 2s;
    background: rgba(25, 135, 84, 0.1);
}

.animated-background .shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 4s;
}

.animated-background .shape:nth-child(4) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 20%;
    animation-delay: 6s;
    background: rgba(25, 135, 84, 0.1);
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-20px);
    }
    100% {
        transform: translatey(0px);
    }
}

/* Alert styles for login */
.login-alert {
    margin: 0 0 20px 0;
    border-radius: 8px;
    padding: 12px 15px;
    display: none;
}

/* Responsive adjustments for login */
@media (max-width: 576px) {
    .login-card {
        max-width: 90%;
        margin: 0 15px;
    }
    
    .login-header {
        padding: 20px 15px;
    }
    
    .login-form {
        padding: 20px;
    }
} 