/* DokuPath Custom Styles */

:root {
    --primary-color: #0F4C81;
    --secondary-color: #F2994A;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Add this CSS to assets/css/style.css */

/* nestBit Login Button Styling */
.nestbit-login-btn {
    background-color: #ffffff !important;
    border: 2px solid #e9ecef;
    color: #495057 !important;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nestbit-login-btn:hover {
    background-color: #f8f9fa !important;
    border-color: #dee2e6;
    color: #212529 !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nestbit-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nestbit-login-btn img {
    height: 20px;
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.text-purple {
    color: #8b5cf6 !important;
}

.bg-purple {
    background-color: #8b5cf6 !important;
}

.bg-maincolor {
    background-color: #0F4C81 !important;
}

.bg-secondarycolor {
    background-color: #F2994A !important;
}

.btn-warning {
	background-color: #F2994A !important;
	color:#FFF;
}

.content-type-wrapper {
    position: relative;
}

.or-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 8px 10px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-weight: 600;
    color: #6c757d;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Custom Bootstrap overrides */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.card {
    border-radius: 0.75rem;
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

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

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

#recent-activity-pagination { position: relative; z-index: 20; }
.pagination .page-link { pointer-events: auto; }
.page-item.disabled .page-link, .page-link.disabled { pointer-events: none; }

/* Turunkan z-index chart supaya tidak nutupin pagination */
.chart-card, .chart-container { position: relative; z-index: 1; }



.chart-card { position: relative; min-height: 280px; }
#viewsOverTimeChart { display: block; max-height: 260px; }


/* Hero Section */
.min-vh-75 {
    min-height: 75vh;
}

/* Upload Area */
.upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}

.upload-area:hover {
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: scale(1.02);
}

.upload-area.dragover {
    border-color: var(--primary-color) !important;
    background: linear-gradient(145deg, #ede9fe 0%, #ddd6fe 100%) !important;
}

/* Stats Cards Animation */
.card-body:hover .fa-2x {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Timeline Styles */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 2rem;
    bottom: -1rem;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item:last-child::before {
    display: none;
}

/* Progress Bar Animations */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

.progress-bar {
    border-radius: 0.25rem;
}

/* Table Hover Effects */
.table-hover tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

/* Button Group Improvements */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

/* Card Header Styles */
.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%); */
}

/* Modal Improvements */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.modal-body {
    padding: 1.5rem;
}

/* Toast Notifications */
.toast {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

/* Form Improvements */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Accordion Styles */
.accordion-button {
    font-weight: 500;
    border-radius: 0.5rem !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(145deg, var(--primary-color) 0%, #4338ca 100%);
    color: white;
}

.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Footer Improvements - Updated for bg-primary with white text */
footer {
    background: var(--primary-color) !important;
}

footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.2s ease;
}

footer .list-unstyled a:hover,
footer .hover-opacity-100:hover {
    color: white !important;
    opacity: 1 !important;
}

footer .footer-social a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

footer .footer-social a:hover {
    color: white;
    transform: translateY(-2px);
}

footer .footer-legal a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.2s ease;
}

footer .footer-legal a:hover {
    color: white;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.25);
    margin: 2rem 0;
}

footer small {
    color: rgba(255, 255, 255, 0.75);
}

footer small a {
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer small a:hover {
    opacity: 0.8;
}

/* Logo nestBit styling */
footer img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

footer img[alt="nestBit"]:hover {
    opacity: 1;
}

/* nestBit logo and branding */
footer .d-flex.align-items-center.justify-content-center img[alt="nestBit"] {
    filter: brightness(0) invert(1);
    transition: all 0.2s ease;
}

footer .d-flex.align-items-center.justify-content-center:hover img[alt="nestBit"] {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Footer columns responsive */
footer .row.text-center h6 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

footer .row.text-center .list-unstyled li {
    margin-bottom: 0.25rem;
}

footer .row.text-center .list-unstyled a {
    font-size: 0.875rem;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    footer .col-md-4,
    footer .col-md-2,
    footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    footer .text-center {
        text-align: left !important;
    }
    
    footer .justify-content-center {
        justify-content: flex-start !important;
    }
    
    footer .text-md-end {
        text-align: left !important;
    }
    
    footer .footer-legal {
        margin-top: 1rem;
    }
    
    footer .footer-legal a {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
    
    /* Stack nestBit branding vertically on mobile */
    footer .d-flex.align-items-center.justify-content-center {
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    footer .d-flex.align-items-center.justify-content-center img {
        margin-bottom: 0.5rem;
    }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1e293b;
        --dark-color: #f8fafc;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4338ca 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

.shadow-soft {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.border-soft {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .modal {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ================================================
   PRICING PAGE STYLES
   Add this to /assets/css/style.css
   ================================================ */

/* Pricing Card Styles */
.pricing-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: var(--warning-color);
    position: relative;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Feature List Styles */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-available {
    color: var(--success-color);
}

.feature-limited {
    color: var(--warning-color);
}

.feature-unavailable {
    color: var(--danger-color);
}

/* Comparison Table Styles */
.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
}

/* Billing Toggle Styles */
.form-check-input:checked {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

/* Pricing Page Responsive */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
        margin-top: 20px;
    }
    
    .pricing-card.featured::before {
        top: -10px;
        font-size: 10px;
        padding: 3px 15px;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem !important;
    }
}

/* ================================================
   FEATURES PAGE STYLES
   Add this to /assets/css/style.css
   ================================================ */

/* Feature Category Cards */
.feature-category-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.feature-category-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Feature List Detailed */
.feature-bullet {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.feature-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 0.5rem;
}

.feature-item:hover {
    background-color: rgba(79, 70, 229, 0.05);
    transform: translateX(5px);
}

/* Analytics Mockup */
.analytics-mockup {
    position: relative;
    overflow: hidden;
}

.mockup-dots .dot {
    width: 12px;
    height: 12px;
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.avatar {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.viewer-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.viewer-item:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Integration Cards */
.integration-card {
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.integration-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color) !important;
}

/* Workflow Steps */
.step-number {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-weight: 600;
}

.workflow-step {
    transition: all 0.3s ease;
}

.workflow-step:hover .step-number {
    transform: scale(1.1);
}

/* Security Feature Cards */
.security-feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.security-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 70, 229, 0.2);
}

.security-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

/* Use Case Cards */
.use-case-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.use-case-icon {
    width: 80px;
    height: 80px;
}

.use-case-card:hover .use-case-icon {
    transform: scale(1.1);
}

/* Feature Highlights */
.feature-highlight {
    border-left: 4px solid var(--success-color);
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Integration Workflow */
.integration-workflow {
    position: relative;
}

.integration-workflow::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--success-color), var(--warning-color));
    opacity: 0.3;
}

/* Canva Icon Custom */
.canva-icon svg {
    transition: all 0.3s ease;
}

.integration-card:hover .canva-icon svg {
    transform: scale(1.1);
}

/* Prezi Icon Custom */
.prezi-icon svg {
    transition: all 0.3s ease;
}

.integration-card:hover .prezi-icon svg {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .use-case-icon {
        width: 60px;
        height: 60px;
    }
    
    .security-icon {
        width: 50px;
        height: 50px;
    }
    
    .analytics-mockup {
        margin-top: 2rem;
    }
    
    .integration-workflow::before {
        display: none;
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    .integration-card {
        min-height: 80px;
    }
}

/* Animation Classes for Features */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Loading Animation for Integration Cards */
.integration-card.loading {
    opacity: 0.6;
    position: relative;
}

.integration-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feature Badge */
.feature-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--warning-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Security Level Indicators */
.security-level-high::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.security-level-medium::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--warning-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Progress Indicators */
.feature-progress {
    height: 4px;
    background: var(--light-color);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.feature-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 2px;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* FAQ Accordion Hover Effects */
.accordion-button:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

.alert-success {
	color:#FFF;
	background:#F2994A;
}

/* CTA Section Gradients */
.pricing-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

/* Monthly/Yearly Price Animation */
.monthly-price,
.yearly-price {
    transition: all 0.3s ease;
}

.yearly-price {
    color: var(--success-color);
    font-weight: 600;
}

/* Plan Benefits Icons */
.pricing-card .fas.fa-check {
    color: var(--success-color);
}

.pricing-card .fas.fa-times {
    color: var(--danger-color);
}

/* Plan Cards Color Variants */
.pricing-card .text-primary {
    color: var(--primary-color) !important;
}

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

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

.pricing-card .text-dark {
    color: var(--dark-color) !important;
}

/* Background Opacity Variants for Comparison Table */
.bg-warning.bg-opacity-10 {
    background-color: rgba(242, 153, 74, 0.1) !important;
}

.bg-warning.bg-opacity-25 {
    background-color: rgba(242, 153, 74, 0.25) !important;
}

/* Context Menu Styles - tambahkan di akhir file */
.document-row {
    position: relative;
    cursor: pointer;
}

.document-row:hover {
    background-color: rgba(0, 123, 255, 0.05) !important;
}

.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    padding: 0.5rem 0;
    display: none;
}

.context-menu-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.15s ease-in-out;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.context-menu-item:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.context-menu-item i {
    width: 16px;
    margin-right: 0.5rem;
}

.context-menu-divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 0.5rem 0;
}

/* Enhanced action buttons */
.action-col .btn-group-sm .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.action-col .btn-group-sm .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .context-menu {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        top: auto;
    }
}