/* CLMS Biometric API Documentation Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --sidebar-width: 250px;
    --header-height: 70px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
    padding-top: var(--header-height);
}

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

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Sidebar */
.sidebar {
    background: white;
    min-height: calc(100vh - var(--header-height));
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    z-index: 1020;
    overflow-y: auto;
}

.sidebar-content {
    padding: 2rem 1.5rem;
}

.sidebar-title {
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.sidebar-title:first-child {
    margin-top: 0;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.5rem 0;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
}

.content-wrapper {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .row {
    position: relative;
    z-index: 1;
}

.api-illustration {
    animation: float 3s ease-in-out infinite;
}

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

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Feature Cards */
.features-section {
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Endpoint Cards */
.endpoints-section {
    margin-bottom: 4rem;
}

.endpoint-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.endpoint-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.endpoint-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.method-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-badge.get {
    background-color: var(--success-color);
    color: white;
}

.method-badge.post {
    background-color: var(--primary-color);
    color: white;
}

.method-badge.put {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.method-badge.delete {
    background-color: var(--danger-color);
    color: white;
}

.endpoint-url {
    background-color: var(--light-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--dark-color);
}

.endpoint-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.endpoint-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Example Section */
.example-section {
    margin-bottom: 4rem;
}

.example-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.example-tabs {
    display: flex;
    background-color: var(--light-color);
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background-color: white;
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.example-content {
    position: relative;
}

.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}

.tab-content pre {
    margin: 0;
    padding: 1.5rem;
    background-color: #2d3748;
    color: #e2e8f0;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tab-content code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Getting Started Section */
.getting-started-section {
    margin-bottom: 4rem;
}

.steps-list {
    position: relative;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 3rem;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.step-content p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.info-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Code Blocks */
pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 1rem 0;
}

code {
    background-color: #f1f3f4;
    color: #d73a49;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* API Method Badges */
.api-method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 1rem;
}

.api-method.get {
    background-color: var(--success-color);
    color: white;
}

.api-method.post {
    background-color: var(--primary-color);
    color: white;
}

.api-method.put {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.api-method.delete {
    background-color: var(--danger-color);
    color: white;
}

/* Response Examples */
.response-example {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1rem 0;
}

.response-header {
    background-color: var(--light-color);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: var(--dark-color);
}

.response-content {
    padding: 1rem;
}

.response-content pre {
    margin: 0;
    background: none;
    color: var(--dark-color);
    padding: 0;
}

/* Interactive Elements */
.interactive-demo {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
}

.demo-form {
    margin-bottom: 2rem;
}

.demo-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
}

.demo-result {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    min-height: 100px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 2rem 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .example-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #343a40;
        --dark-color: #f8f9fa;
    }
    
    body {
        background-color: #212529;
        color: var(--dark-color);
    }
    
    .sidebar {
        background: #343a40;
    }
    
    .feature-card,
    .endpoint-card,
    .example-card {
        background: #343a40;
        border-color: #495057;
    }
    
    .info-card {
        background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    }
}

/* Additional Styles for Documentation Pages */
.prerequisite-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.prerequisite-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.prerequisite-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.prerequisite-content p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.step-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-header .step-number {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-header h4 {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--dark-color);
}

.step-content p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.step-content ul {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.code-example {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.code-example h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.next-step-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.next-step-card:hover {
    transform: translateY(-5px);
}

.next-step-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.next-step-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.next-step-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.device-type-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.device-type-card:hover {
    transform: translateY(-5px);
}

.device-type-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--info-color), #17a2b8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.device-type-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.device-type-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.device-type-card ul {
    text-align: left;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.device-type-card ul li {
    margin-bottom: 0.25rem;
}

.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.endpoint-overview {
    margin-bottom: 2rem;
}

.endpoint-overview .endpoint-card {
    margin-bottom: 1rem;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-body {
    background-color: white;
    color: var(--secondary-color);
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 0;
    }
    
    .hero-section {
        background: none;
        color: var(--dark-color);
        padding: 0;
        margin-bottom: 2rem;
    }
}
