/* --- Global & Login --- */
html, body, #app {
    height: 100%;
    margin: 0;
    font-family: 'Tajawal', sans-serif; /* Recommended Arabic font */
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f4f7f6;
}

/* --- Main Layout --- */
.main-layout {
    display: flex;
    height: 100%;
}

.sidebar {
    width: 260px;
    background-color: #2c3e50;
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #34495e;
}
.sidebar-header i { color: #1abc9c; }
.user-info {
    margin-top: auto; /* Pushes to the bottom */
    font-size: 1.1rem;
}
.logout-btn {
    background: #34495e;
    border: none;
    color: #ecf0f1;
    padding: 10px;
    width: 100%;
    text-align: right;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.logout-btn:hover { background-color: #c0392b; }

.main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #ecf0f1;
    overflow-y: auto;
}

/* --- Status List --- */
.status-list {
    margin-top: 20px;
}
.status-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.status-item.active {
    opacity: 1;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.1);
}
.status-item.done {
    opacity: 1;
    border-color: #28a745;
    background-color: #f8f9fa;
}
.status-icon {
    font-size: 2rem;
    margin-left: 20px;
    color: #bdc3c7;
}
.status-item.active .status-icon {
    color: #007bff;
    animation: pulse 1.5s infinite;
}
.status-item.done .status-icon {
    color: #28a745;
    animation: none;
}
.status-text { flex-grow: 1; }
.status-text strong { display: block; font-size: 1.1rem; }
.status-time { font-weight: bold; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Result View --- */
.result-toolbar {
    text-align: left;
    margin-bottom: 10px;
}
.result-window {
    background-color: #2d2d2d;
    color: #f1f1f1;
    border-radius: 5px;
    padding: 15px;
    min-height: 60vh;
    max-height: 60vh;
    overflow-y: auto;
}
.result-window pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    color: inherit;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}