/* أساسيات الصفحة */
:root {
    --dark-blue: #1a365d;
    --orange: #ff7846;
    --light-green: #4cd964;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --text-dark: #2d3748;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* الشريط الجانبي */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark-blue);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-logo span {
    color: var(--orange);
}

.admin-info {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.admin-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.admin-role {
    color: var(--orange);
    font-size: 0.9rem;
}

.sidebar-menu {
    padding: 10px 0;
}

.menu-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--orange);
}

.menu-item i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* المحتوى الرئيسي */
.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 20px;
}

.header {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    color: var(--dark-blue);
    font-size: 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-btn {
    position: relative;
    color: var(--dark-blue);
    font-size: 1.2rem;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--orange);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn {
    background: var(--orange);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--dark-blue);
}

/* بطاقات الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 15px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* أزرار التحكم */
.control-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.control-btn {
    background: var(--white);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.control-btn:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

.control-icon {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 15px;
}

.control-title {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.control-desc {
    color: #666;
    font-size: 0.9rem;
}

/* الجداول */
.table-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.table-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    color: var(--dark-blue);
    font-size: 1.2rem;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 15px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    width: 200px;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px 20px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8fafc;
    color: var(--dark-blue);
    font-weight: 600;
}

tr:hover {
    background: #f8fafc;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: #e6f7ee;
    color: #0c9770;
}

.status-pending {
    background: #fef5e6;
    color: #e68a00;
}

.action-btn {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    margin-left: 5px;
}

.btn-view {
    background: #e6f7ee;
    color: #0c9770;
}

.btn-edit {
    background: #e6f0ff;
    color: #1a73e8;
}

.btn-delete {
    background: #fde8e8;
    color: #e53e3e;
}

/* نمط النموذج */
.form-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.form-title {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.form-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--orange);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--orange);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    background: var(--orange);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--dark-blue);
}

/* responsive design */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar .admin-info,
    .sidebar .menu-item span {
        display: none;
    }
    
    .sidebar .menu-item {
        justify-content: center;
        padding: 15px;
    }
    
    .sidebar .menu-item i {
        margin-left: 0;
    }
    
    .main-content {
        margin-right: 70px;
    }
}

@media (max-width: 768px) {
    .stats-grid,
    .control-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}
/* إضافات جديدة للعناصر الإضافية */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.checkbox-label input {
    width: auto;
    margin-left: 10px;
}

.content-section.active {
    display: block;
}

/* تحسينات إضافية للاستجابة */
@media (max-width: 576px) {
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .table-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .search-box input {
        width: 100%;
    }
}
/* تحسينات للهيدر */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    background: var(--light-gray);
    color: var(--dark-blue);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #e2e8f0;
}

/* تصميم صفحة الملف الشخصي */
.profile-header {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-avatar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.profile-info h2 {
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.user-email {
    color: #666;
    margin-bottom: 10px;
}

.user-status {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-role {
    background: #e6f0ff;
    color: #1a73e8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--dark-blue);
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-danger {
    background: #fed7d7;
    color: #c53030;
}

.btn-danger:hover {
    background: #feb2b2;
}

.btn-warning {
    background: #feebc8;
    color: #dd6b20;
}

.btn-warning:hover {
    background: #fbd38d;
}

/* شبكة الملف الشخصي */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8fafc;
}

.card-header h3 {
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.card-body {
    padding: 20px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item label {
    font-weight: 600;
    color: var(--dark-blue);
    min-width: 120px;
}

.info-item span {
    color: #666;
    text-align: left;
}

/* قائمة الدورات */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.course-info h4 {
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.course-info p {
    color: #666;
    font-size: 0.9rem;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.progress-bar {
    width: 80px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--light-green);
    transition: width 0.3s ease;
}

/* الإحصائيات المصغرة */
.stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-mini {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-mini .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.stat-mini .stat-label {
    color: #666;
    font-size: 0.8rem;
}

/* منطقة الخطر */
.danger-zone {
    border: 2px solid #fed7d7;
    border-radius: 10px;
    padding: 20px;
    background: #fff5f5;
}

.danger-zone h3 {
    color: #c53030;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.danger-zone p {
    color: #744210;
    margin-bottom: 20px;
}

.danger-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cancel-btn {
    background: #e2e8f0;
    color: var(--dark-blue);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #cbd5e0;
}

/* تحسينات للاستجابة */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-mini {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .profile-avatar {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        justify-content: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .course-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .danger-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cancel-btn {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .stats-mini {
        grid-template-columns: 1fr;
    }
}
/* تصميم صفحة الدورات المتاحة */
.filters-container {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.filters-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box.large {
    flex: 1;
    min-width: 300px;
}

.search-box.large input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    font-size: 1rem;
}

.filter-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    background: var(--white);
    min-width: 150px;
}

/* شبكة الدورات */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--orange);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-badge.trending {
    background: #4cd964;
}

.course-badge.free {
    background: #1a73e8;
}

.course-content {
    padding: 20px;
}

.course-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.course-category.programming {
    background: #e6f0ff;
    color: #1a73e8;
}

.course-category.ai {
    background: #e6f7ee;
    color: #0c9770;
}

.course-category.robotics {
    background: #fef5e6;
    color: #e68a00;
}

.course-category.icdl {
    background: #f3e8ff;
    color: #8b5cf6;
}

.course-title {
    color: var(--dark-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.8rem;
}

.meta-item i {
    color: var(--orange);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.price.free {
    color: #4cd964;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.course-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.8rem;
}

/* ترقيم الصفحات */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: var(--white);
    color: var(--dark-blue);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.page-btn:hover {
    background: #f8fafc;
    border-color: var(--orange);
}

.page-btn.active {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.page-btn.disabled {
    background: #f8fafc;
    color: #999;
    cursor: not-allowed;
}

/* تحسينات للاستجابة */
@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box.large {
        min-width: auto;
    }
    
    .filter-group select {
        min-width: auto;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .course-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .course-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
        justify-content: center;
    }
}
/* أزرار إضافية */
.view-courses-btn {
    background: #4cd964;
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-courses-btn:hover {
    background: #3bc453;
}

.btn-outline {
    background: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--dark-blue);
    color: var(--white);
}

/* تحسينات للهيدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* تحسينات للنموذج */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.required {
    color: #e53e3e;
}

.file-upload {
    margin-top: 8px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--orange);
    background: #fefaf6;
}

.upload-area i {
    font-size: 2rem;
    color: #666;
    margin-bottom: 10px;
}

.upload-area p {
    color: #666;
    margin-bottom: 5px;
}

.upload-area span {
    color: var(--orange);
    font-weight: 600;
}

.upload-area small {
    color: #999;
}

.file-upload input[type="file"] {
    display: none;
}

.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* تحسينات للجدول */
.course-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.course-name {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 4px;
}

.course-meta {
    font-size: 0.8rem;
    color: #666;
}

.category-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-badge.programming {
    background: #e6f0ff;
    color: #1a73e8;
}

.category-badge.ai {
    background: #e6f7ee;
    color: #0c9770;
}

.category-badge.robotics {
    background: #fef5e6;
    color: #e68a00;
}

.category-badge.icdl {
    background: #f3e8ff;
    color: #8b5cf6;
}

.category-badge.design {
    background: #fce7f3;
    color: #db2777;
}

.category-badge.business {
    background: #dcfce7;
    color: #16a34a;
}

/* تحسينات للأزرار في الجدول */
.action-btn {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 0.8rem;
}

.btn-view {
    background: #e6f7ee;
    color: #0c9770;
}

.btn-view:hover {
    background: #d1f2e3;
}

.btn-edit {
    background: #e6f0ff;
    color: #1a73e8;
}

.btn-edit:hover {
    background: #d1e1ff;
}

.btn-delete {
    background: #fde8e8;
    color: #e53e3e;
}

.btn-delete:hover {
    background: #fbd5d5;
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .view-courses-btn {
        order: -1;
    }
    
    .form-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        justify-content: center;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .course-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .action-btn {
        margin: 2px;
        padding: 8px 12px;
    }
    
    .action-btn span {
        display: none;
    }
}