/* Lakes Tutoring Core - Admin Styles */

/* Example: Change the icon color for the Students CPT in the admin menu */
#adminmenu #menu-posts-student .wp-menu-image::before {
    color: #3498db;
}


/* Tree View Styles */
.ws-tree-item {
    border: none;
    background: transparent;
    padding: 0;
    margin-bottom: 2px;
}

.ws-tree-row {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    color: #444;
    text-decoration: none;
}

.ws-tree-row:hover, .ws-tree-row.active {
    background-color: #e9ecef;
    color: #2c3e50;
    font-weight: 500;
}

.ws-tree-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    color: #adb5bd;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 0.8rem;
}

.ws-tree-toggle:hover {
    color: #4e73df;
}

.ws-tree-toggle.open {
    transform: rotate(90deg);
    color: #4e73df;
}

.ws-tree-children {
    padding-left: 22px; /* Indent */
    display: none; /* Hidden by default */
    border-left: 1px solid #e9ecef;
    margin-left: 9px;
}

/* Search Results Dropdown */
#ws-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    display: none; /* Hidden by default */
}

.ws-search-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.ws-search-item:hover {
    background-color: #f8f9fa;
}

.ws-search-item:last-child {
    border-bottom: none;
}

.ws-search-icon {
    width: 30px;
    text-align: center;
    font-size: 1.2rem;
    margin-right: 10px;
}


/* --- SECURE VAULT & WORKSHEET STYLING --- */

/* 1. Layout & Wrapper */
.vault-wrapper {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e3e6f0;
    min-height: 650px;
}

.vault-sidebar {
    width: 280px;
    background-color: #f8f9fc;
    border-right: 1px solid #e3e6f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.vault-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fff;
}

/* 2. Hero Cards (Beautiful Gradients) */
.vault-hero-card .card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.vault-hero-card:hover .card {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}
.vault-hero-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. File Grid Cards */
.ws-file-card {
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    background: #fff;
}
.ws-file-card:hover {
    border-color: #4e73df;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.ws-file-title {
    font-weight: 600;
    color: #2c3e50;
    margin-top: 10px;
}

/* 4. Tree View Styling */
.ws-tree-row {
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s;
    color: #5a5c69;
}
.ws-tree-row:hover {
    background: #eaecf4;
    color: #2e59d9;
}
.ws-tree-row.active {
    background: #e0f2ff; /* Light Blue Active */
    color: #2e59d9;
    font-weight: 600;
}
.ws-tree-toggle {
    width: 24px;
    text-align: center;
    color: #b7b9cc;
    cursor: pointer;
}
.ws-tree-toggle:hover { color: #4e73df; }

/* 5. Drag & Drop Visuals */
.drag-over {
    background-color: #e0f2ff !important;
    border: 2px dashed #4e73df !important;
    transform: scale(1.02);
}

/* 6. List View Polish */
.vault-file-row td {
    vertical-align: middle;
    padding: 12px 15px;
}
.vault-file-row:hover {
    background-color: #f8f9fc;
}
.ws-folder-item-row {
    background-color: #fffbe6; /* Subtle yellow tint for folders */
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    /* Stack Sidebar */
    .vault-wrapper {
        flex-direction: column; 
    }
    .vault-sidebar {
        width: 100%;
        height: auto;
        max-height: 300px; /* Scrollable if too tall */
        border-right: none;
        border-bottom: 1px solid #e3e6f0;
    }
    
    /* Adjust Grid Columns for Tablets */
    .col-lg-3 { width: 33.33%; }
}

@media (max-width: 767px) {
    /* Stack Header Controls */
    .vault-content .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }
    
    /* File Grid Mobile (2 per row) */
    .col-6 { width: 50%; } 
    
    /* Hide Non-Essential Table Columns */
    .vault-file-list th:nth-child(2), .vault-file-list td:nth-child(2), /* Date */
    .vault-file-list th:nth-child(3), .vault-file-list td:nth-child(3)  /* Type */
    {
        display: none; 
    }
    
    /* Hero Cards Stack */
    #vault-hero-row {
        flex-direction: column;
    }
}

.ltc-dropzone {
    transition: all 0.3s ease-in-out;
}
.ltc-dropzone:hover {
    border-color: #4e73df !important;
    background: #f8f9fc !important;
}