body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #000000;
}

/* Sidebar: clean black bar */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 80px;
    min-height: 100vh;
    background: #000000;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.3s ease;
}

/* Logo on sidebar, correctly positioned and not stretched */
.sidebar-logo {
    margin: 30px 0;
    padding: 0 15px;
}
.sidebar-logo img {
    max-width: 50px;
    height: auto;
    width: 100%;
    display: block;
}

.landing-label {
    display: none;
}

.main-content {
    margin-left: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
    padding: 60px 40px;
}

.headline {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.2;
}
.headline strong {
    text-decoration: none;
}

.desc {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
}

.login-box {
    background: #ffffff;
    color: #000000;
    border-radius: 0;
    padding: 48px;
    width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
    margin-bottom: 14px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}
.login-box h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 32px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000000;
}
.login-box h2 i {
    font-size: 1.5em;
    margin-right: 10px;
}
.login-box input {
    width: 100%;
    padding: 14px 16px;
    margin: 0 0 20px 0;
    border-radius: 0;
    border: 1px solid #d0d0d0;
    font-size: 1em;
    font-family: inherit;
    background: #ffffff;
    color: #000000;
    transition: border-color 0.2s;
}
.login-box input:focus {
    outline: none;
    border-color: #000000;
}
.login-box input::placeholder {
    color: #999999;
}
.login-box button {
    width: 100%;
    background: #000000;
    color: #ffffff;
    font-size: 1em;
    padding: 16px 0;
    border: none;
    border-radius: 0;
    margin-top: 12px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.3s;
}
.login-box button:hover {
    background: #333333;
}
.login-box .login-links {
    margin-top: 24px;
    font-size: 0.9em;
}
.login-box .login-links a {
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    border-bottom: 1px solid #000000;
    padding-bottom: 2px;
    display: inline-block;
}
.login-box .login-links a:hover {
    opacity: 0.6;
}
.other-links {
    text-align: left;
    margin-top: 10px;
    font-size: 1em;
    color: #000000;
}
.other-links a {
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
    border-bottom: 1px solid #000000;
    display: inline-block;
}
.other-links a:hover {
    opacity: 0.6;
}
.login-failed {
    color: #d8000c;
    background: #fff5f5;
    border: 1px solid #d8000c;
    padding: 12px 16px;
    border-radius: 0;
    margin-bottom: 24px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .main-content { margin-left: 60px; }
}


/* Main dashboard area overrides */

.dashboard-flex {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

.dashboard-sidebar {
    width: 80px;
    background: #000000;
    border-right: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.sidebar-menu {
    width: 100%;
    margin-top: 60px;
    margin-bottom: 36px;
    text-align: center;
    padding: 0 10px;
}

.sidebar-link {
    display: block;
    font-size: 0.75em;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 16px 8px;
    margin-bottom: 8px;
    transition: opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-link span {
    display: none;
}
.sidebar-link:hover {
    opacity: 0.7;
}
.sidebar-user {
    margin-top: auto;
    padding: 0 10px;
    color: #ffffff;
    font-size: 0.75em;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}
.sidebar-username {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.85em;
}

.sidebar-logout {
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-top: 12px;
    font-size: 0.85em;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.sidebar-logout:hover {
    opacity: 1;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-topbar {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 60px 32px 60px;
    position: relative;
    min-height: 80px;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-content {
    flex: 1;
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    padding: 60px 60px 0 60px;
}

/* Upload Section */

.ppt-upload-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
.upload-col {
    width: 280px;
    text-align: center;
}
.upload-box {
    background: #ffffff;
    border-radius: 0;
    border: 2px solid #000000;
    padding: 48px 24px;
    margin-bottom: 24px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 500;
    color: #000000;
    transition: all 0.3s;
}
.upload-box:hover {
    background: #000000;
    color: #ffffff;
}
.upload-icon {
    font-size: 3em;
    margin-bottom: 16px;
}
.upload-icon .material-symbols-outlined {
    font-size: 80px;
    line-height: 1;
    display: block;
    color: inherit;
}
.upload-info {
    font-size: 0.9em;
    color: #666666;
}
.upload-info a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
}
.upload-info a:hover {
    opacity: 0.6;
}
.files-col {
    flex: 1;
    max-width: 900px;
    margin-left: 0;
}
.files-header {
    display: grid;
    grid-template-columns: auto 130px;
    grid-auto-rows: auto;
    column-gap: 40px;
    row-gap: 8px;
    align-items: center;
    font-size: 1em;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000000;
}
.status-title {
    min-width: 130px;
    text-align: center;
}
.files-list {
    display: grid;
    grid-template-columns: 1fr 130px;
    column-gap: 40px;
    row-gap: 12px;
    margin-top: 0;
}
.file-row {
    display: contents;
    font-size: 1em;
    color: #000000;
}
.file-chevron {
    font-size: 1em;
    margin-right: 8px;
    opacity: 0.5;
}
.file-name {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-weight: 400;
}
.file-status {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    color: #000000;
    font-size: 1.1em;
}
.file-checked {
    color: #000000;
    font-size: 1.4em;
}
.no-files {
    color: #666666;
    font-size: 1em;
}
.files-list .no-files {
    grid-column: 1 / -1;
}
.status-dots {
    color: #000000;
    margin-left: 8px;
}
.files-header .status-title {
    width: auto;
    white-space: nowrap;
}
.check-col {
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.files-header #ci-start-btn,
.files-list #ci-start-btn,
.files-col #ci-start-btn { display: none; }

.action-col {
    width: 280px;
}
.action-col #ci-start-btn {
    width: 280px;
    height: 200px;
    margin-left: 0;
}
.ci-check-btn {
    width: 100%;
    height: 180px;
    background: #000000;
    border: none;
    margin-left: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ci-check-btn:hover {
    background: #333333;
}

/* inline, compact variant used in header */
.ci-inline-btn {
    width: auto;
    height: auto;
    padding: 12px 24px;
    border-radius: 0;
    box-shadow: none;
}

.ppt-header {
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #000000;
    font-size: 1.8em;
    margin-bottom: 16px;
}

/* Report layout */
.report-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    column-gap: 40px;
    align-items: start;
}
.report-right .ci-check-btn {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
}
.report-right .ci-check-btn .material-symbols-outlined {
    font-size: 48px;
}
.zip-card {
    background: #ffffff;
    display: flex;
    width: 100%;
    height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
    box-shadow: none;
    border-radius: 0;
    border: 2px solid #000000;
    transition: all 0.3s;
}
.zip-card:hover {
    background: #000000;
}
.zip-card:hover .material-symbols-outlined {
    color: #ffffff;
}
.zip-card:hover .download-label {
    color: #ffffff;
}
.zip-card .material-symbols-outlined {
    font-size: 48px;
    color: #000000;
    transition: color 0.3s;
}
.download-label {
    color: #000000;
    font-weight: 600;
    text-align: center;
    transition: color 0.3s;
}
.report-tile-title {
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
    font-size: 1.2em;
}
.download-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.material-symbols-outlined {
    font-variation-settings:
      'FILL' 0,
      'wght' 400,
      'GRAD' 0,
      'opsz' 24;
}

/* History table tweaks */
#history-container {
    margin-top: 40px;
}
.table td:nth-child(3) {
    word-break: break-word;
}
.table {
    border-collapse: collapse;
    width: 100%;
}
.table td, .table th {
    border-right: 1px solid #e0e0e0;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}
.table td:last-child, .table th:last-child {
    border-right: none;
}
.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}
.table td, .table th {
    vertical-align: middle;
}
.table thead th {
    background: #000000;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.05em;
}
.table tbody tr {
    transition: background-color 0.2s;
}
.table tbody tr:hover {
    background: #f5f5f5;
}
.table a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
}
.table a:hover {
    opacity: 0.6;
}
