/* General Layout */
body {
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc; /* Clean Light Slate Background */
    color: #0f172a;
}

#app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar Custom Styling */
#sidebar {
    width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.sidebar-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 4px 0 0 0;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.menu-item:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.menu-item.active {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    border-color: #e2e8f0;
}

.menu-item-icon {
    margin-right: 12px;
    font-size: 16px;
    opacity: 0.8;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fafafa;
}

/* Main Content Wrapper */
#main-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    padding: 40px 48px;
    box-sizing: border-box;
}

/* Swagger UI Minimalist Override */
.swagger-ui {
    font-family: inherit ;
}

.swagger-ui .topbar {
    display: none ; /* Completely hide default topbar */
}

/* Clean Header Info section */
.swagger-ui .info {
    margin: 0 0 40px 0 ;
}

.swagger-ui .info .title {
    font-family: 'Syncopate', sans-serif ;
    text-transform: uppercase ;
    letter-spacing: 0.08em ;
    font-size: 26px ;
    font-weight: 700 ;
    color: #0f172a ;
}

.swagger-ui .info p, 
.swagger-ui .info li, 
.swagger-ui .info td, 
.swagger-ui .info a {
    color: #475569 ;
    font-size: 15px ;
    line-height: 1.6 ;
}

/* Authorize / Schemes Panel */
.swagger-ui .scheme-container {
    display: none ;
}

.swagger-ui .btn.authorize {
    background-color: #0f172a ; /* Minimal Dark Button */
    color: #ffffff ;
    border: 1px solid #0f172a ;
    border-radius: 8px ;
    font-weight: 600 ;
    padding: 10px 20px ;
    transition: all 0.2s ease ;
    font-size: 14px ;
}

.swagger-ui .btn.authorize:hover {
    background-color: #1e293b ;
    border-color: #1e293b ;
}

.swagger-ui .btn.authorize svg {
    fill: #ffffff ;
}

/* Search / Filter input */
.swagger-ui .filter input {
    background-color: #ffffff ;
    border: 1px solid #e2e8f0 ;
    color: #0f172a ;
    border-radius: 8px ;
    padding: 12px 18px ;
    font-size: 14px ;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) ;
    max-width: 400px ;
    margin-bottom: 24px ;
}

/* Tag Sections styling */
.swagger-ui .opblock-tag-section {
    background-color: #ffffff ;
    border: 1px solid #e2e8f0 ;
    border-radius: 12px ;
    padding: 24px ;
    margin-bottom: 32px ;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02) ;
}

.swagger-ui .opblock-tag {
    font-family: 'Syncopate', sans-serif ;
    text-transform: uppercase ;
    letter-spacing: 0.08em ;
    font-size: 16px ;
    font-weight: 700 ;
    color: #0f172a ;
    border-bottom: 1px solid #f1f5f9 ;
    padding-bottom: 14px ;
    margin-bottom: 20px ;
}

.swagger-ui .opblock-tag p {
    font-size: 14px ;
    color: #64748b ;
}

/* Endpoint Cards styling */
.swagger-ui .opblock {
    border-radius: 8px ;
    border: 1px solid #e2e8f0 ;
    background-color: #ffffff ;
    box-shadow: none ;
    margin-bottom: 10px ;
    overflow: hidden ;
    transition: border-color 0.2s ease ;
}

.swagger-ui .opblock:hover {
    border-color: #cbd5e1 ;
}

/* Method Color Overrides */
.swagger-ui .opblock.opblock-get { background: #fafafa ; border-color: #f1f5f9 ; }
.swagger-ui .opblock.opblock-post { background: #fafafa ; border-color: #f1f5f9 ; }
.swagger-ui .opblock.opblock-put { background: #fafafa ; border-color: #f1f5f9 ; }
.swagger-ui .opblock.opblock-delete { background: #fafafa ; border-color: #f1f5f9 ; }

.swagger-ui .opblock.opblock-get .opblock-summary-method { background: #0284c7 ; color: #ffffff ; }
.swagger-ui .opblock.opblock-post .opblock-summary-method { background: #16a34a ; color: #ffffff ; }
.swagger-ui .opblock.opblock-put .opblock-summary-method { background: #d97706 ; color: #ffffff ; }
.swagger-ui .opblock.opblock-delete .opblock-summary-method { background: #dc2626 ; color: #ffffff ; }

.swagger-ui .opblock .opblock-summary-method {
    border-radius: 6px ;
    font-size: 11px ;
    font-weight: 700 ;
    padding: 6px 12px ;
    text-shadow: none ;
}

.swagger-ui .opblock-summary-path {
    font-size: 14px ;
    font-weight: 600 ;
    color: #0f172a ;
}

.swagger-ui .opblock-summary-description {
    color: #64748b ;
    font-size: 13px ;
}

/* Parameters and Responses panels */
.swagger-ui .opblock-section-header {
    background: #f8fafc ;
    border-bottom: 1px solid #e2e8f0 ;
    padding: 10px 16px ;
}

.swagger-ui .opblock-section-header h4 {
    font-size: 13px ;
    font-weight: 600 ;
    color: #475569 ;
}

.swagger-ui .tabli button {
    font-size: 13px ;
    font-weight: 600 ;
}

/* Clean up Authorize Dialog Popup */
.swagger-ui .dialog-ux {
    position: fixed ;
    top: 0 ;
    left: 0 ;
    width: 100vw ;
    height: 100vh ;
    z-index: 9999 ;
    display: flex ;
    align-items: center ;
    justify-content: center ;
    background-color: rgba(15, 23, 42, 0.45) ; /* Soft dark Overlay */
    backdrop-filter: blur(8px) ;
}

.swagger-ui .modal-ux {
    background-color: #ffffff ;
    border: 1px solid rgba(226, 232, 240, 0.8) ;
    border-radius: 24px ;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) ;
    width: 100% ;
    max-width: 460px ;
    padding: 32px ;
    box-sizing: border-box ;
    top: auto ;
    left: auto ;
    transform: none ;
    animation: fadeIn 0.3s ease;
}

.swagger-ui .modal-ux-header {
    display: flex ;
    justify-content: space-between ;
    align-items: center ;
    border-bottom: 1px solid #f1f5f9 ;
    padding-bottom: 18px ;
    margin-bottom: 24px ;
}

.swagger-ui .modal-ux-header h3 {
    font-family: 'Syncopate', sans-serif ;
    text-transform: uppercase ;
    letter-spacing: 0.08em ;
    font-size: 16px ;
    font-weight: 700 ;
    color: #0f172a ;
    margin: 0 ;
}

.swagger-ui .modal-ux-header .close-modal {
    background: none ;
    border: none ;
    fill: #64748b ;
    cursor: pointer ;
    padding: 4px ;
    border-radius: 6px ;
    transition: background-color 0.2s ease ;
}

.swagger-ui .modal-ux-header .close-modal:hover {
    background-color: #f1f5f9 ;
    fill: #0f172a ;
}

.swagger-ui .modal-ux-content {
    padding: 0 ;
}

.swagger-ui .modal-ux-content h4 {
    font-size: 13px ;
    font-weight: 600 ;
    color: #475569 ;
    margin: 0 0 12px 0 ;
    text-transform: uppercase ;
    letter-spacing: 0.05em ;
}

.swagger-ui .auth-container {
    padding: 0 ;
}

.swagger-ui .auth-container label {
    font-size: 12px ;
    font-weight: 600 ;
    color: #475569 ;
    display: block ;
    margin-bottom: 6px ;
}

.swagger-ui .auth-container input {
    background-color: #ffffff ;
    border: 1px solid #cbd5e1 ;
    border-radius: 10px ;
    padding: 10px 14px ;
    font-size: 14px ;
    color: #0f172a ;
    width: 100% ;
    box-sizing: border-box ;
    margin-bottom: 16px ;
    outline: none ;
    transition: all 0.2s ease ;
}

.swagger-ui .auth-container input:focus {
    border-color: #0f172a ;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06) ;
}

.swagger-ui .auth-btn-wrapper {
    display: flex ;
    justify-content: flex-end ;
    gap: 10px ;
    margin-top: 24px ;
    border-top: 1px solid #f1f5f9 ;
    padding-top: 16px ;
}

.swagger-ui .auth-btn-wrapper .btn {
    border-radius: 10px ;
    padding: 10px 18px ;
    font-size: 13px ;
    font-weight: 600 ;
    cursor: pointer ;
    transition: all 0.2s ease ;
    border: 1px solid transparent ;
    box-shadow: none ;
}

.swagger-ui .auth-btn-wrapper .btn.modal-btn.auth {
    background-color: #0f172a ;
    color: #ffffff ;
    border: 1px solid #0f172a ;
}

.swagger-ui .auth-btn-wrapper .btn.modal-btn.auth:hover {
    background-color: #1e293b ;
    border-color: #1e293b ;
}

.swagger-ui .auth-btn-wrapper .btn.auth-btn.close {
    background-color: #ffffff ;
    color: #475569 ;
    border: 1px solid #cbd5e1 ;
}

.swagger-ui .auth-btn-wrapper .btn.auth-btn.close:hover {
    background-color: #f8fafc ;
    border-color: #cbd5e1 ;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Auth Pages Layout & Forms (Login, Signup, Forgot Password) */
body.auth-page {
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    width: 100vw;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
}

.auth-card-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    box-sizing: border-box;
}

.auth-blur-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.auth-blur-1 {
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(99, 102, 241, 0.15); /* Indigo blob */
}

.auth-blur-2 {
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(99, 102, 241, 0.08);
}

.auth-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.07), 0 15px 15px -5px rgba(0, 0, 0, 0.04);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 32px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.auth-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 6px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.auth-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
    background-color: #ffffff;
}

select.auth-input {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.15);
}

.auth-submit-btn:hover:not(:disabled) {
    background-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -1px rgba(15, 23, 42, 0.2);
}

.auth-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-submit-btn.btn-success {
    background-color: #16a34a ;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.15);
}

.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-error-message {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    font-size: 13px;
    padding: 12px;
    border-radius: 10px;
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.2s ease;
}

.auth-success-message {
    color: #16a34a;
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    font-size: 13px;
    padding: 12px;
    border-radius: 10px;
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.2s ease;
}

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

.auth-footer {
    text-align: center;
    margin-top: 24px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.auth-footer p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.auth-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.auth-link-small {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link-small:hover {
    color: #0f172a;
    text-decoration: underline;
}

