﻿/* ── Layout ── */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    height: 100%;
    margin: 0;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Top Navigation Bar ── */
.top-bar {
    background: #001132;
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 1.5rem;
    min-height: 64px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Brand / Logo Section */
.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1rem;
    border-right: 1px solid #e9ecef;
}

[dir="rtl"] .brand-section {
    padding-right: 0;
    padding-left: 1rem;
    border-right: none;
    border-left: 1px solid #e9ecef;
}

.brand-logo {
    display: flex;
    align-items: center;
}

    .brand-logo img {
        height: 36px;
        width: auto;
        object-fit: contain;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.6rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Top Bar Buttons */
.top-bar .btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

.top-bar .btn-success {
    background: #28a745;
    border-color: #28a745;
}

    .top-bar .btn-success:hover {
        background: #218838;
        border-color: #1e7e34;
    }

.top-bar .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}

    .top-bar .btn-danger:hover {
        background: #c82333;
        border-color: #bd2130;
    }

.top-bar .btn-primary {
        background: #007bff;
        border-color: #007bff;
}

    .top-bar .btn-primary:hover {
            background: #0069d9;
            border-color: #0062cc;
    }

.top-bar .btn-outline-secondary {
    border: solid 0.5px #2e2828;
    color: #ffffff;
}

    .top-bar .btn-outline-secondary:hover {
            background: #0069d9;
            border-color: #0062cc;
            color: #ffffff;
    }

/* Icon Buttons */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #ffffff;
    transition: all 0.15s ease;
    font-size: 1.1rem;
    cursor: pointer;
}
.top-bar .btn-outline-secondary-back:hover {
    background: #0069d9;
    border-color: #0062cc;
    color: #ffffff;
}

    .btn-icon:hover {
        background: #0069d9;
        color: #0062cc;
        transform: scale(1.05);
    }

    .btn-icon:active {
        transform: scale(0.95);
    }

    .header-divider {
        width: 1px;
        height: 28px;
        background: #e9ecef;
        flex-shrink: 0;
    }
    /* ── Content Wrapper ── */
    .content-wrapper {
        display: flex;
        flex-direction: row;
        flex: 1;
        background: #f0f2f5;
        min-height: 0;
    }

    .content {
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem 2rem;
        background: #f0f2f5;
    }
    /* ── Footer / Status Bar ── */
.footer-bar {
    /*background: #ffffff;*/
    background-color: #001132;
    border-top: 1px solid #e9ecef;
    padding: 0.5rem 1.5rem;
    min-height: 44px;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        height: 100%;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .status-item {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.8rem;
        color: #495057;
    }

    .status-label {
        color: #ffffff;
        font-weight: 400;
    }

    .status-value {
        font-weight: 500;
        color: #ffffff;
    }

        .status-value.text-success {
            color: #28a745 !important;
        }

    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        flex-shrink: 0;
    }

        .status-dot.online {
            background: #28a745;
            box-shadow: 0 0 6px rgba(40,167,69,0.4);
        }

        .status-dot.offline {
            background: #dc3545;
            box-shadow: 0 0 6px rgba(220,53,69,0.4);
        }

        .status-dot.warning {
            background: #ffc107;
            box-shadow: 0 0 6px rgba(255,193,7,0.4);
        }

    .status-divider {
        color: #dee2e6;
        font-weight: 300;
    }

    .secure-connection {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        color: #28a745;
        font-size: 0.8rem;
        font-weight: 500;
    }

        .secure-connection i {
            font-size: 0.9rem;
        }

    .connection-dot {
        width: 6px;
        height: 6px;
        background: #28a745;
        border-radius: 50%;
        display: inline-block;
        animation: pulse-dot 2s ease-in-out infinite;
    }

    @keyframes pulse-dot {
        0%, 100% {
            opacity: 0.4;
            transform: scale(0.9);
        }

        50% {
            opacity: 1;
            transform: scale(1.2);
        }
    }
    /* ── Document Scans Page Styles ── */
    /* Scan cards grid */
    .scan-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
        margin-top: 1rem;
    }

    .scan-card {
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        padding: 1.5rem 1rem;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }

        .scan-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            border-color: #0d6efd;
        }

        .scan-card .scan-icon {
            font-size: 2.2rem;
            color: #0d6efd;
            margin-bottom: 0.75rem;
            display: block;
        }

        .scan-card .scan-title {
            font-weight: 600;
            font-size: 0.95rem;
            color: #212529;
            margin-bottom: 0.25rem;
        }

        .scan-card .scan-subtitle {
            font-size: 0.8rem;
            color: #6c757d;
        }
    /* ── Recent Movements Section ── */
    .recent-movements-section {
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        padding: 1.5rem;
        margin-top: 2rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }

    .recent-movements-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.25rem;
    }

        .recent-movements-header h5 {
            font-weight: 600;
            color: #212529;
            margin: 0;
        }

        .recent-movements-header .badge {
            font-weight: 500;
            padding: 0.35rem 0.75rem;
        }

    .empty-state {
        text-align: center;
        padding: 2.5rem 1rem;
        color: #6c757d;
    }

        .empty-state .empty-icon {
            font-size: 2.5rem;
            color: #dee2e6;
            margin-bottom: 1rem;
        }

        .empty-state .empty-text {
            font-size: 0.95rem;
        }

        .empty-state .empty-hint {
            font-size: 0.85rem;
            color: #adb5bd;
        }
    /* ── RTL Support ── */
    [dir="rtl"] .content-wrapper {
        flex-direction: row-reverse;
    }
    /* ── Responsive ── */
    @media (max-width: 1200px) {
        .brand-subtitle {
            display: none;
        }
    }

    @media (max-width: 992px) {
        .footer-content {
            justify-content: center;
            gap: 0.25rem 1rem;
        }

        .footer-left,
        .footer-center,
        .footer-right {
            justify-content: center;
        }
    }

    @media (max-width: 768px) {
        .top-bar {
            padding: 0.4rem 0.75rem;
            flex-wrap: wrap;
            gap: 0.5rem;
            min-height: auto;
        }

        .brand-title {
            font-size: 0.7rem;
        }

        .brand-subtitle {
            display: none;
        }

        .brand-logo img {
            height: 28px;
        }

        .brand-section {
            padding-right: 0.5rem;
            border-right: none;
        }

        [dir="rtl"] .brand-section {
            padding-left: 0.5rem;
            border-left: none;
        }

        .top-bar .d-flex:first-child {
            flex-wrap: wrap;
            gap: 0.25rem;
            width: 100%;
        }

        .top-bar .btn {
            font-size: 0.75rem;
            padding: 0.2rem 0.5rem;
        }

        .top-bar .btn-icon {
            width: 28px;
            height: 28px;
            font-size: 0.95rem;
        }

        .header-divider {
            height: 20px;
        }

        .content {
            padding: 1rem;
        }

        .scan-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 0.75rem;
        }

        .footer-bar {
            padding: 0.4rem 0.75rem;
        }

        .footer-content {
            flex-direction: column;
            align-items: stretch;
            gap: 0.25rem;
        }

        .footer-left,
        .footer-center,
        .footer-right {
            justify-content: center;
            flex-wrap: wrap;
        }

        .status-item {
            font-size: 0.7rem;
        }

        .status-divider {
            display: none;
        }
    }

    @media (max-width: 480px) {
        .scan-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }

        .scan-card {
            padding: 1rem 0.5rem;
        }

            .scan-card .scan-icon {
                font-size: 1.6rem;
            }

            .scan-card .scan-title {
                font-size: 0.8rem;
            }

            .scan-card .scan-subtitle {
                font-size: 0.7rem;
            }

        .brand-title {
            font-size: 0.6rem;
        }

        .brand-logo img {
            height: 24px;
        }

        .top-bar .btn {
            font-size: 0.65rem;
            padding: 0.15rem 0.4rem;
        }

        .top-bar .btn-icon {
            width: 24px;
            height: 24px;
            font-size: 0.85rem;
        }

        .header-divider {
            display: none;
        }
    }

.text-muted
{
    color:#ffffff;
}

h6{
    text-transform:uppercase;
}