* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #c6e3ff  0%, #366397 100%);
    color: white;
    padding: .5rem 2.3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-subtitle {
    opacity: 0.9;
    font-size: 0.875rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    width: 355px;
}

.search-button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info a {
    color: white;
    text-decoration: none;
}

.user-info a:hover {
    text-decoration: underline;
}

.main-container {
    display: grid;
    grid-template-columns:475px 1fr;
    gap: 2rem;
    padding: 2rem;
    padding-top:1.5rem;
    margin: 0 auto;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 7px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-header {
    background: #6f9ac3;
    color: white;
    padding: .7rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.sidebar-content {
    padding: 1rem;
    font-size: 0.875rem;
}

.sidebar-content a {
    color: #4f46e5;
    text-decoration: none;
}

.sidebar-content a:hover {
    text-decoration: underline;
}

.current-category {
    color: #dc2626;
    font-weight: bold;
}

.content-area {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 7px 2px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    padding-top: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1e293b;
}

.page-title2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1e293b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: calc(100% - 280px);
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.data-table th {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.data-table a:hover {
    text-decoration: underline;
}

.file-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.file-available {
    color: #059669;
}

.file-restricted {
    color: #d97706;
}

.file-none {
    color: #6b7280;
}

.detail-table {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.detail-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.detail-table td:first-child {
    background: #f8fafc;
    font-weight: 600;
    width: 250px;
}

.access-notice {
    background: #fef8e3;
    border: 1px solid #fef3c7;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.access-notice a {
    color: #92400e;
    font-weight: 600;
    text-decoration: none;
}

.access-notice a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
}

.toggle-link {
    cursor: pointer;
    color: #6f9ac3;
    text-decoration: none;
}

.toggle-link:hover {
    text-decoration: underline;
}

.history-table {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #f8fafc;
    width: 100%;
    max-width: 550px;
}

input, select, textarea {
    padding: 0.3rem;
    box-sizing: border-box;
    border-radius: 3px;
    border: 1px solid #b6b6b6;
}

.history-table td {
    padding: 8px;
    border-bottom: 1px solid #bbb;
    font-size: 12px;
}

.history-table .name-col {
    width: 150px;
    font-weight: bold;
}

.history-table .date-col {
    width: 150px;
    background-color: #fff;
}

.history-table .action-col {
    width: 150px;
    background-color: #fff;
}

.custom-button {
    background: #6f9ac3;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.edit-toggle-button {
    background: #6f9ac3;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 1rem;
}

.edit-toggle-button:hover {
    background: #3d75b0;
    color: white;
    text-decoration: none;
}

.mode-indicator {
    background: #f7fafc;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #4a5568;
    margin-left: 1rem;
}

.warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-box {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    margin: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.warning-box h3 {
    margin: 0 0 1.5rem 0;
    color: #dc2626;
    font-size: 1.1rem;
    text-align: center;
}

.warning-box p {
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    color: #374151;
}

.warning-button {
    background: #6f9ac3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
}