/**
 * Nexzoneo WooCommerce Plugin Documentation - Custom Styles
 */

/* General Styles */
:root {
    --nexzoneo-primary: #0d6efd;
    --nexzoneo-success: #198754;
    --nexzoneo-info: #0dcaf0;
    --nexzoneo-warning: #ffc107;
    --nexzoneo-danger: #dc3545;
    --sidebar-width: 250px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 300px;
}

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

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

.sidebar .nav-link.active {
    color: var(--nexzoneo-primary);
    background-color: #e7f3ff;
    border-left-color: var(--nexzoneo-primary);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.docs-content {
    max-width: 900px;
}

.docs-content h2 {
    margin-top: 2rem;
    color: #2c3e50;
}

.docs-content h3,
.docs-content h4 {
    margin-top: 1.5rem;
    color: #34495e;
}

/* Installation Steps */
.installation-step {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.installation-step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--nexzoneo-primary), #0a58ca);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

.step-content {
    flex-grow: 1;
}

.step-content h5 {
    color: var(--nexzoneo-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Code Blocks */
.code-block-container {
    margin: 1rem 0;
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9rem;
    position: relative;
    overflow-x: auto;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-block code {
    color: #f8f8f2;
    background: transparent;
}

.code-block button {
    margin-left: 1rem;
    flex-shrink: 0;
}

pre[class*="language-"] {
    border-radius: 0.375rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #e83e8c;
}

/* Cards */
.card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Alerts */
.alert {
    border-left-width: 4px;
}

.alert-info {
    border-left-color: var(--nexzoneo-info);
    background-color: #e7f6fd;
}

.alert-success {
    border-left-color: var(--nexzoneo-success);
    background-color: #d1e7dd;
}

.alert-warning {
    border-left-color: var(--nexzoneo-warning);
    background-color: #fff3cd;
}

.alert-danger {
    border-left-color: var(--nexzoneo-danger);
    background-color: #f8d7da;
}

/* Tables */
.table {
    font-size: 0.95rem;
}

.table thead th {
    border-bottom: 2px solid var(--nexzoneo-primary);
    color: var(--nexzoneo-primary);
    font-weight: 600;
}

/* Accordion */
.accordion-button {
    font-weight: 500;
}

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

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

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* Navbar */
.navbar-brand img {
    filter: brightness(0) invert(1);
}

/* Feature Icons */
.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7f3ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--nexzoneo-primary);
}

/* Scrollbar Styling (Webkit) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .installation-step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 1rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    footer {
        display: none;
    }

    .docs-content {
        max-width: 100%;
    }

    .code-block,
    pre[class*="language-"] {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .installation-step {
        page-break-inside: avoid;
    }
}

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

.docs-content section {
    animation: fadeIn 0.5s ease-in-out;
}

/* Link Styles */
a {
    color: var(--nexzoneo-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Button Enhancements */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}

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

/* Form Check (Checklist) */
.form-check-input:checked {
    background-color: var(--nexzoneo-success);
    border-color: var(--nexzoneo-success);
}

/* Logo Styling */
.logo {
    max-height: 40px;
    width: auto;
}

/* Sticky Header */
.sticky-top {
    z-index: 1020;
}

/* List Styling */
.list-unstyled li {
    padding: 0.25rem 0;
}

/* Card Headers */
.card-header {
    font-weight: 600;
}

/* Footer Links */
footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: white !important;
    text-decoration: none;
}

/* Image Styling */
img {
    max-width: 100%;
    height: auto;
}

/* Border Utilities */
.border-primary {
    border-color: var(--nexzoneo-primary) !important;
}

.border-success {
    border-color: var(--nexzoneo-success) !important;
}

.border-info {
    border-color: var(--nexzoneo-info) !important;
}

/* Background Utilities */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Shadow Utilities */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

/* Text Utilities */
.text-primary {
    color: var(--nexzoneo-primary) !important;
}

.text-success {
    color: var(--nexzoneo-success) !important;
}

.text-info {
    color: var(--nexzoneo-info) !important;
}

.text-warning {
    color: var(--nexzoneo-warning) !important;
}

.text-danger {
    color: var(--nexzoneo-danger) !important;
}

/* Spacing Adjustments */
section {
    scroll-margin-top: 80px;
}
