﻿
/* ===============================
   TOP NAVIGATION AREA
=================================*/

.doc-top {
    display: flex;
    flex-direction: column;
    background-color: #f2f2f2;
    border-bottom: 1px solid #cfcfcf;
}


/* ===============================
   TABS (Dashboard | Documents | Search)
=================================*/

.doc-tabs {
    display: flex;
    background-color: #e6e6e6;
    padding-left: 10px;
    border-bottom: 1px solid #cfcfcf;
}

.tab-item {
    padding: 10px 20px;
    margin-right: 5px;
    background-color: #d9d9d9;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
}

    .tab-item:hover {
        background-color: #cfcfcf;
    }

    .tab-item.active {
        background-color: #1f4e79;
        color: white;
        font-weight: bold;
    }


/* ===============================
   ICON TOOLBAR
=================================*/

.doc-icon-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background-color: #f8f8f8;
}

.icon-group {
    display: flex;
    align-items: center;
}

.icon-btn {
    background: none;
    border: 1px solid transparent;
    padding: 6px 8px;
    margin-right: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

    .icon-btn:hover {
        border: 1px solid #bdbdbd;
        background-color: #eaeaea;
    }


/* ===============================
   PAGING SECTION
=================================*/

.doc-paging {
    display: flex;
    align-items: center;
    font-size: 13px;
    gap: 6px;
    color: #333;
}

    .doc-paging select {
        padding: 2px 4px;
        font-size: 12px;
    }

.doc-count {
    margin-left: 15px;
    font-weight: 500;
}

/* ===============================
   GLOBAL CONTAINER
=================================*/

.doc-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
}


/* ===============================
   TOP TOOLBAR
=================================*/

.doc-toolbar {
    height: 50px;
    background-color: #1f4e79;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.tb-btn {
    background-color: #2e75b6;
    border: none;
    color: white;
    padding: 6px 12px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 3px;
}

    .tb-btn:hover {
        background-color: #3c8bd6;
    }

.search-box {
    padding: 5px 10px;
    border-radius: 3px;
    border: none;
}


/* ===============================
   BODY LAYOUT
=================================*/

.doc-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}


/* ===============================
   LEFT SIDEBAR
=================================*/

.doc-sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 10px;
    background-color: #e9ecef;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.folder-tree {
    list-style: none;
    padding: 10px;
    margin: 0;
}

    .folder-tree li {
        padding: 6px 5px;
        cursor: pointer;
    }

        .folder-tree li:hover {
            background-color: #f1f1f1;
        }


/* ===============================
   CENTER CONTENT
=================================*/

.doc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* ===============================
   DOCUMENT TABLE
=================================*/

.doc-table-container {
    flex: 1;
    overflow-y: auto;
    background-color: white;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
}

    .doc-table th {
        background-color: #2e75b6;
        color: white;
        padding: 8px;
        text-align: left;
    }

    .doc-table td {
        padding: 8px;
        border-bottom: 1px solid #eee;
    }

    .doc-table tbody tr:hover {
        background-color: #f1f7ff;
    }


/* ===============================
   PROPERTIES PANEL
=================================*/

.doc-properties {
    height: 180px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
}

.properties-header {
    padding: 8px;
    background-color: #e9ecef;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.properties-content {
    padding: 10px;
    font-size: 14px;
}


/* ===============================
   RIGHT PREVIEW PANEL
=================================*/

.doc-preview {
    width: 350px;
    background-color: #ffffff;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 10px;
    background-color: #e9ecef;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.preview-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}
.folder-row {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

    .folder-row:hover {
        background-color: #eef4ff;
    }

.selected-folder .folder-row {
    background-color: #1f4e79;
    color: white;
    box-shadow: 0 0 8px rgba(31, 78, 121, 0.6);
}

.expand-icon {
    width: 18px;
    cursor: pointer;
    font-size: 12px;
}

.expand-placeholder {
    width: 18px;
    color: transparent;
}

.folder-children {
    margin-left: 16px;
    border-left: 1px dashed #d0d0d0;
    padding-left: 6px;
}
/* =========================================
   SIDEBAR TREE STYLE (LogicalDOC Style)
========================================= */

.doc-sidebar {
    width: 260px;
    background-color: #f4f4f4;
    border-right: 1px solid #cfcfcf;
    overflow-y: auto;
    font-size: 13px;
}

/* Node wrapper */
.tree-node {
    margin-left: 12px;
}

/* Row */
.tree-row {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s ease;
}

    /* Hover */
    .tree-row:hover {
        background-color: #e6f0ff;
    }

    /* Selected */
    .tree-row.selected {
        background-color: #4da3ff;
        color: white;
    }

/* Expand icon */
.tree-expand {
    width: 16px;
    font-weight: bold;
    color: #0078d4;
    cursor: pointer;
    text-align: center;
    margin-right: 4px;
}

/* Folder icon */
.tree-folder-icon {
    margin-right: 6px;
    color: #666;
    font-size: 14px;
}

/* Label */
.tree-label {
    flex: 1;
}

/* Children container */
.tree-children {
    margin-left: 14px;
    border-left: 1px solid #d8d8d8;
    padding-left: 6px;
}
