* {
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    background-color: #e6f0fa; /* Lighter than panel */
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    direction: rtl; /* Arabic right-to-left */
}

h1 {
    color: #1e3a8a;
    margin-bottom: 20px;
    text-align: center;
}

.panel {
    background-color: #dbeafe; /* Light blue panel */
    border: 2px solid #2563eb; /* Blue border */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.top-panel {
    display: flex;
    flex-direction: column;
}

textarea {
    width: 100%;
    min-height: 50px;
    resize: none; /* Flexible height handled by JS */
    overflow: hidden; /* Vertical wrap handled by JS */
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    outline: none;
    line-height: 1.5;
    text-align: center;
}

textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.bottom-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 1.2rem;
    color: #1e40af;
    margin-bottom: 10px;
    border-bottom: 2px solid #bfdbfe;
    padding-bottom: 5px;
    text-align: center;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Centered as requested */
    background: #fee2e2; /* Light red for requirements */
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #fca5a5;
    gap: 10px;
}

.task-number {
    font-weight: bold;
    color: #2563eb;
    min-width: 30px;
}

.task-content {
    flex-grow: 1;
    word-break: break-word;
    text-align: center;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-item.completed {
    background: #dcfce7; /* Light green for accomplishments */
    border-color: #86efac;
}

.completed .task-content {
    color: #374151; /* Dark gray for text without strike-through */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .panel {
        padding: 15px;
        margin-bottom: 15px;
    }
    h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    textarea {
        font-size: 14px;
    }
    .task-item {
        padding: 8px 10px;
        gap: 8px;
    }
    .task-content {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
}

/* Auth Styles */
.auth-panel {
    max-width: 400px;
    text-align: center;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.auth-form input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #93c5fd;
    font-size: 16px;
    outline: none;
}
.auth-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.hidden {
    display: none !important;
}
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.primary-btn {
    background-color: #2563eb;
    color: white;
}
.primary-btn:hover {
    background-color: #1d4ed8;
}
.danger-btn {
    background-color: #ef4444;
    color: white;
}
.danger-btn:hover {
    background-color: #b91c1c;
}

/* Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}
.header-container h1 {
    margin: 0;
}

/* Admin Layout */
.admin-layout {
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    height: 100vh;
}
.sidebar {
    width: 250px;
    background-color: #1e3a8a;
    color: white;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.project-btn {
    background-color: #3b82f6;
    color: white;
    text-align: right;
}
.project-btn:hover {
    background-color: #2563eb;
}
.logout-sidebar {
    margin-top: 20px;
}
.main-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    height: 100%;
}
