* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.header {
    background: #E6F3FF;
    color: #2d3748;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #B3D9FF;
}

.header-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 60px;
    max-width: 200px;
}

.user-info {
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
}

.user-info a {
    color: #2c5282;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 600;
}

.user-info a:hover {
    color: #1a365d;
    text-decoration: underline;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

/* CRITICAL: 3-COLUMN GRID LAYOUT */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr 400px;
    gap: 20px;
    align-items: start;
}

/* LEFT COLUMN */
.sidebar {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #2c5282;
    font-size: 18px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    color: #4a5568;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar a:hover, .sidebar a.active {
    background: #E6F3FF;
    color: #2c5282;
}

.sidebar .folder-icon {
    margin-right: 8px;
    font-size: 18px;
}

.project-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.project-section:last-child {
    border-bottom: none;
}

.project-title {
    color: #2c5282;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #E6F3FF;
    border-radius: 4px;
}

/* MIDDLE COLUMN */
.content-area {
    background: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 600px;
}

/* RIGHT COLUMN */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.webcam-section {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.webcam-placeholder {
    background: #2d3748;
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
}

.render-section {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.render-section img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #718096;
    font-size: 14px;
}

.breadcrumb a {
    color: #2c5282;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.action-bar h2 {
    color: #2c5282;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background: #2c5282;
    color: white;
}

.btn-primary:hover {
    background: #1a365d;
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-small {
    padding: 5px 12px;
    font-size: 13px;
}

.file-list {
    list-style: none;
}

.file-item, .folder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.file-item:hover, .folder-item:hover {
    background: #f7fafc;
}

.file-info, .folder-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon, .folder-icon {
    margin-right: 12px;
    font-size: 20px;
}

.file-name, .folder-name {
    font-weight: 500;
    color: #2d3748;
}

.folder-name {
    color: #2c5282;
    cursor: pointer;
}

.folder-name:hover {
    text-decoration: underline;
}

.file-meta {
    color: #718096;
    font-size: 13px;
    margin-left: 15px;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2d3748;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left: 4px solid #3182ce;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #2c5282;
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.login-container h2 {
    color: #2c5282;
    margin-bottom: 30px;
    text-align: center;
}

.login-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-links a {
    color: #2c5282;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.landing-page {
    text-align: center;
    padding: 60px 20px;
}

.landing-page h1 {
    color: #2c5282;
    font-size: 36px;
    margin-bottom: 20px;
}

.landing-page p {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.access-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    background: #f7fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-pending {
    background: #feebc8;
    color: #7c2d12;
}

.badge-info {
    background: #bee3f8;
    color: #2c5282;
}

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.project-access-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.project-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #E6F3FF;
    color: #2c5282;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-state h3 {
    color: #2c5282;
    margin-bottom: 10px;
}

.project-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.project-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}
