/* Admin Layout - PC Optimized */

/* Default styles for mobile/tablet remain in style.css, these override for specific admin screens */

.admin-layout-screen {
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #1a1a2e;
    color: #eee;
    font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
}

.admin-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: #111;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-accent-blue, #4db8ff);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-nav button {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #aaa;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* Ensure table cells are middle aligned by default in admin */
.admin-content td,
.admin-content th {
    vertical-align: middle;
}

.sidebar-nav button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-nav button.active-tab {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-left-color: var(--color-accent-blue, #4db8ff);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Main Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.admin-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: #16213e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.admin-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #1a1a2e;
    /* Match main bg */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start !important;
    /* Force top alignment */
    height: 100%;
}

.admin-tab-pane {
    width: 100%;
    display: none;
}

.admin-tab-pane[style*="display: block"],
.admin-tab-pane[style*="display:block"] {
    display: block !important;
}

/* Card overrides for admin layout to fit better */
.admin-content .card {
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling */
.sidebar-nav::-webkit-scrollbar,
.admin-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.admin-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-track,
.admin-content::-webkit-scrollbar-track {
    background: transparent;
}