* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.login-visible {
    background: url('../img/sulawesi_small.jpg') no-repeat center center;
    background-size: cover;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.container_users {
    width: 100%;
    max-width: 700px;
    padding: 20px;
}


.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: 0.3s ease all;
}

input:focus + label,
input:valid + label {
    top: -10px;
    font-size: 12px;
    background: white;
    padding: 0 5px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #1557b0;
}

#message {
    margin-top: 15px;
    text-align: center;
}

.archive-content {
    background: white;
    padding: 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
}

.archive-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.user-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#userName {
    color: #1a73e8;
    font-weight: 500;
}

#logoutBtn {
    width: auto;
    padding: 10px;
    background: none;
    color: #1a73e8;
    border-radius: 50%;
    margin: 0;
    transition: all 0.3s ease;
}

#logoutBtn:hover {
    background-color: rgba(26, 115, 232, 0.1);
    color: #1557b0;
}

#logoutBtn i {
    font-size: 24px;
}

.registration-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

.registration-box button {
    margin-top: 20px;
}

#message {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
}

#message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-dashboard header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.admin-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.admin-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-link {
    display: block;
    padding: 10px;
    background-color: #f5f5f5;
    color: #1a73e8;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-link:hover {
    background-color: #e8f0fe;
}

/* User Management Styles */
.user-management {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-bar {
    margin: 20px 0;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.user-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.user-table tr:hover {
    background-color: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons button {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.edit-btn {
    background-color: #1a73e8;
    color: white;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

/* Upload Form Styles */
.upload-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.file-upload-group {
    margin-bottom: 25px;
}

.file-upload-group label {
    position: static;
    display: block;
    margin-bottom: 8px;
    color: #333;
    transform: none;
}

.file-upload-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Keep the floating label behavior only for text inputs */
.input-group input:focus + label,
.input-group input:valid + label {
    top: -10px;
    font-size: 12px;
    background: white;
    padding: 0 5px;
}

/* Lecture Viewer Styles */
.lecture-viewer {
    padding: 20px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lecture-info {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tabs-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    cursor: pointer;
    width: auto;
}

.tab-btn.active {
    background: white;
    color: #1a73e8;
    border-bottom: 2px solid #1a73e8;
}

.tab-content {
    flex: 1;
    overflow: auto;
}

.tab-panel {
    display: none;
    height: 100%;
    padding: 20px;
}

.tab-panel.active {
    display: block;
}

.editor {
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.editor.read-only {
    background: #f8f9fa;
}

.audio-player {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.audio-player audio {
    width: 100%;
}
.back-button {
    position: absolute;
    left: 20px;
    font-size: 1.2em;
}

.back-button a {
    color: inherit;
    text-decoration: none;
}

.task-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.task-form.collapsed form {
    display: none;
}

.task-form h2 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-form.collapsed h2 i {
    transform: rotate(-90deg);
}

.task-form h2 i {
    transition: transform 0.3s ease;
}
.tasks-view {
    padding: 20px;
}

.task-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.task-metadata {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.task-metadata span {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.task-type {
    background-color: #e3f2fd;
    color: #1976d2;
}

.task-priority.high {
    background-color: #ffebee;
    color: #c62828;
}

.task-priority.medium {
    background-color: #fff3e0;
    color: #ef6c00;
}

.task-priority.low {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.task-status {
    background-color: #f5f5f5;
    color: #616161;
}

.task-status.completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.task-lecture {
    margin-top: 12px;
    font-size: 0.9em;
    color: #666;
}

.error-message {
    color: #c62828;
    padding: 16px;
    background-color: #ffebee;
    border-radius: 4px;
    text-align: center;
}

.no-tasks {
    padding: 24px;
    text-align: center;
    color: #666;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.back-btn {
    margin-bottom: 20px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
}

.back-btn:hover {
    background-color: #e0e0e0;
}
.tasks-list .task-card {
    cursor: pointer;
    /* Add other styling as needed */
}

.tasks-list .task-card:hover {
    background-color: #f5f5f5;
    /* Add hover effects as desired */
}
