@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;900&display=swap');

:root {
    --primary: #4A90E2;
    --bg: #121212;
    --text: #f5f6fa;
    --card-bg: #1e272e;
}

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

body { 
    font-family: 'Cairo', sans-serif; 
    direction: rtl; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.6;
    font-weight: 700; /* الخطوط بولد (عريضة) */
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2rem; 
}

/* Header */
header { 
    text-align: center; 
    margin-bottom: 3rem; 
    padding: 3rem 2rem; 
    background: var(--card-bg); 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

header h1 { 
    font-size: 2.8rem; 
    color: var(--primary); 
    margin-bottom: 0.5rem; 
    font-weight: 900;
}
header p {
    font-size: 1.2rem;
    color: #a4b0be;
}

/* Grid System */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}

/* Cards */
.card { 
    background: var(--card-bg); 
    padding: 2rem; 
    border-radius: 20px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    display: flex;
    flex-direction: column;
    border-top: 6px solid var(--primary); 
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.card h2 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    font-weight: 900;
}

.card p { 
    color: #dcdde1; 
    margin-bottom: 1.5rem; 
    flex-grow: 1;
}

/* Buttons */
.btn { 
    display: inline-block; 
    padding: 0.6rem 1.5rem; 
    background: var(--primary); 
    color: white; 
    text-decoration: none; 
    border-radius: 30px; 
    font-weight: 800; 
    text-align: center;
    transition: 0.2s;
    border: none;
}

.btn:hover {
    opacity: 0.9;
}

.btn-back { 
    background: #576574; 
    color: #ffffff;
    margin-bottom: 2rem; 
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Page Specific Styles */
.page-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 2rem; 
}

.content-section { 
    background: var(--card-bg); 
    padding: 2.5rem; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    margin-bottom: 2rem; 
}

.content-section h3 { 
    margin-bottom: 1.5rem; 
    color: var(--primary); 
    border-bottom: 2px solid #2f3640; 
    padding-bottom: 0.8rem; 
    font-size: 1.6rem;
    font-weight: 900;
}

/* Task List */
.content-list { 
    list-style-type: none; 
}

.content-list li { 
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem; 
    background: #2f3640;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 1.2rem;
}

input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary);
}

.editable-task {
    flex-grow: 1;
    outline: none;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px dashed transparent;
    transition: 0.2s;
}

.editable-task:focus, .editable-task:hover {
    border-color: #718093;
    background: #353b48;
}

.completed {
    text-decoration: line-through;
    color: #7f8fa6;
    font-style: italic;
}

.desc-text {
    font-size: 1.1rem;
    color: #dcdde1;
    margin-bottom: 1.5rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag { 
    display: inline-block; 
    padding: 0.4rem 1rem; 
    background: #353b48; 
    color: #f5f6fa;
    border-radius: 20px; 
    font-size: 1rem; 
    font-weight: 700;
}

/* Theme Colors for Dark Mode */
.theme-kids { border-color: #ff7675 !important; }
.theme-kids h1, .theme-kids h2, .theme-kids h3 { color: #ff7675 !important; }
.theme-kids .btn:not(.btn-back) { background: #ff7675 !important; color: #121212; }
.theme-kids input[type="checkbox"] { accent-color: #ff7675; }

.theme-school { border-color: #00cec9 !important; }
.theme-school h1, .theme-school h2, .theme-school h3 { color: #00cec9 !important; }
.theme-school .btn:not(.btn-back) { background: #00cec9 !important; color: #121212; }
.theme-school input[type="checkbox"] { accent-color: #00cec9; }

.theme-uni { border-color: #0984e3 !important; }
.theme-uni h1, .theme-uni h2, .theme-uni h3 { color: #0984e3 !important; }
.theme-uni .btn:not(.btn-back) { background: #0984e3 !important; }
.theme-uni input[type="checkbox"] { accent-color: #0984e3; }

.theme-b2b { border-color: #fdcb6e !important; }
.theme-b2b h1, .theme-b2b h2, .theme-b2b h3 { color: #fdcb6e !important; }
.theme-b2b .btn:not(.btn-back) { background: #fdcb6e !important; color: #121212; }
.theme-b2b input[type="checkbox"] { accent-color: #fdcb6e; }
