/*create*/
    :root {
        --primary-gradient: linear-gradient(135deg, #074973 0%, #1BA665 50%, #ADBF21 100%);
        --primary-color: #074973;
        --secondary-color: #1BA665;
        --accent-color: #ADBF21;
        --light-bg: #f0fdf4;
        --border-color: #a7d8a8;
    }

    body {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        min-height: 100vh;
    }

    .page-header {
        background: var(--primary-gradient);
        color: white;
        padding: 40px 0;
        margin-bottom: 40px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(7, 73, 115, 0.15);
    }

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
        pointer-events: none;
    }

    .page-header h1 {
        position: relative;
        z-index: 1;
        font-size: 2rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .page-header-icon {
        width: 50px;
        height: 50px;
        background: rgba(255,255,255,0.2);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .form-container {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .form-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
        border: 1px solid #e2e8f0;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .form-section {
        padding: 30px;
        border-bottom: 1px solid #e2e8f0;
    }

    .form-section:last-child {
        border-bottom: none;
    }

    .section-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 16px;
        border-bottom: 2px solid var(--light-bg);
    }

    .section-icon {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1rem;
    }

    .form-group-modern {
        margin-bottom: 24px;
    }

    .form-group-modern:last-child {
        margin-bottom: 0;
    }

    .form-label-modern {
        display: block;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

    .form-label-required::after {
        content: ' *';
        color: #ef4444;
    }

    .form-control-modern,
    .form-select-modern {
        width: 100%;
        padding: 12px 16px;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        font-size: 1rem;
        background: white;
        color: #1e293b;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .form-control-modern:focus,
    .form-select-modern:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(27, 166, 101, 0.1);
    }

    .form-control-modern:disabled {
        background: #f8fafc;
        color: #64748b;
        cursor: not-allowed;
    }

    .form-select-modern {
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%231BA665' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px 12px;
        padding-right: 40px;
    }

    .form-text-modern {
        font-size: 0.875rem;
        color: #64748b;
        margin-top: 6px;
        display: block;
    }

    .form-error {
        color: #ef4444;
        font-size: 0.875rem;
        margin-top: 6px;
        display: block;
    }

    .form-control-modern.is-invalid,
    .form-select-modern.is-invalid {
        border-color: #ef4444;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ef4444' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
    }

    .form-control-modern.is-invalid:focus,
    .form-select-modern.is-invalid:focus {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
        margin-bottom: 24px;
    }

    .form-row.two-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 768px) {
        .form-row.two-cols {
            grid-template-columns: 1fr;
        }
    }

    .file-upload-area {
        border: 2px dashed var(--border-color);
        border-radius: 12px;
        padding: 24px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: var(--light-bg);
    }

    .file-upload-area:hover {
        border-color: var(--secondary-color);
        background: #f0fdf4;
    }

    .file-upload-area input {
        display: none;
    }

    .file-upload-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .file-upload-text {
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 4px;
    }

    .file-upload-hint {
        font-size: 0.875rem;
        color: #64748b;
    }

    .discount-display {
        background: linear-gradient(135deg, #f0fdf4 0%, #f5f9e8 100%);
        border: 1.5px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
        margin-top: 12px;
    }

    .discount-value {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--secondary-color);
    }

    .discount-label {
        font-size: 0.875rem;
        color: #64748b;
        margin-top: 8px;
    }

    .savings-amount {
        font-size: 1rem;
        color: var(--secondary-color);
        font-weight: 600;
        margin-top: 8px;
    }

    .checkbox-modern {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: var(--light-bg);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .checkbox-modern:hover {
        background: #e8f9f0;
    }

    .checkbox-modern input {
        width: 20px;
        height: 20px;
        cursor: pointer;
        accent-color: var(--secondary-color);
    }

    .checkbox-modern label {
        margin: 0;
        cursor: pointer;
        font-weight: 500;
        color: #1e293b;
    }

    .button-group {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        margin-top: 30px;
        padding-top: 24px;
        border-top: 1px solid #e2e8f0;
    }

    .btn-modern {
        padding: 14px 24px;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-decoration: none;
        width: 100%;
    }

    .btn-primary-modern {
        background: var(--primary-gradient);
        color: white;
        box-shadow: 0 4px 15px rgba(27, 166, 101, 0.3);
    }

    .btn-primary-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(27, 166, 101, 0.4);
    }

    .btn-secondary-modern {
        background: white;
        color: var(--secondary-color);
        border: 2px solid var(--secondary-color);
    }

    .btn-secondary-modern:hover {
        background: var(--light-bg);
        transform: translateY(-2px);
    }

    .alert-modern {
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;
    }

    .alert-success-modern {
        background: #d1fae5;
        border: 1px solid #a7d8a8;
        color: #1BA665;
    }

    .alert-info-modern {
        background: #d1fae5;
        border: 1px solid #a7d8a8;
        color: #1BA665;
    }

    .alert-warning-modern {
        background: #f5f3c7;
        border: 1px solid #e8e6a0;
        color: #8a8c1a;
    }

    @media (max-width: 768px) {
        .page-header h1 {
            font-size: 1.5rem;
        }

        .form-section {
            padding: 20px;
        }

        .button-group {
            grid-template-columns: 1fr;
        }
    }
    
    
    /*index*/
    
   
    :root {
        --primary-gradient: linear-gradient(135deg, #074973 0%, #1BA665 50%, #ADBF21 100%);
        --primary-color: #074973;
        --secondary-color: #1BA665;
        --accent-color: #ADBF21;
        --light-bg: #f0fdf4;
        --border-color: #a7d8a8;
    }

    body {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        min-height: 100vh;
    }

    .page-header {
        background: var(--primary-gradient);
        color: white;
        padding: 30px 0;
        margin-bottom: 20px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(7, 73, 115, 0.15);
    }

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
        pointer-events: none;
    }

    .page-header-content {
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .page-header h1 {
        font-size: 1.8rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0;
    }

    .page-header-icon {
        width: 45px;
        height: 45px;
        background: rgba(255,255,255,0.2);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }

    .btn-add-course {
        background: white;
        color: var(--secondary-color);
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    }

    .btn-add-course:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        color: var(--secondary-color);
    }

    .main-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .success-alert {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        border: 1px solid #6ee7b7;
        border-radius: 10px;
        padding: 14px 18px;
        margin-bottom: 20px;
        color: #047857;
        display: flex;
        align-items: center;
        gap: 10px;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .table-card {
        background: white;
        border-radius: 14px;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.07);
        border: 1px solid #e2e8f0;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .table-header {
        background: linear-gradient(135deg, #f0fdf4 0%, #f5f9e8 100%);
        padding: 16px 20px;
        border-bottom: 1px solid #e2e8f0;
    }

    .table-header h2 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .table-header-icon {
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.9rem;
    }

    .table-responsive {
        overflow: visible;
    }

    .courses-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
    }

    .courses-table thead {
        background: white;
    }

    .courses-table thead th {
        padding: 12px 8px;
        text-align: right;
        font-weight: 600;
        color: #1e293b;
        border-bottom: 2px solid #e2e8f0;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        word-wrap: break-word;
    }

    .courses-table tbody tr {
        border-bottom: 1px solid #e2e8f0;
        transition: all 0.3s ease;
    }

    .courses-table tbody tr:hover {
        background: var(--light-bg);
    }

    .courses-table tbody td {
        padding: 10px 8px;
        vertical-align: middle;
        color: #1e293b;
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    .course-image {
        width: 50px;
        height: 40px;
        border-radius: 6px;
        object-fit: cover;
        border: 1px solid #e2e8f0;
    }

    .course-image-placeholder {
        width: 50px;
        height: 40px;
        border-radius: 6px;
        background: linear-gradient(135deg, #1BA665 0%, #ADBF21 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1rem;
    }

    .course-title {
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 4px;
    }

    .course-description {
        font-size: 0.875rem;
        color: #64748b;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .instructor-info {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .instructor-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #e2e8f0;
        flex-shrink: 0;
    }

    .instructor-avatar-placeholder {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .instructor-details {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .instructor-name {
        font-weight: 600;
        font-size: 0.75rem;
        color: #1e293b;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .instructor-email {
        font-size: 0.65rem;
        color: #64748b;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .price-badge {
        font-weight: 700;
        color: var(--secondary-color);
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .badge-modern {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .badge-department {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        color: #0369a1;
    }

    .badge-duration {
        background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
        color: #1BA665;
    }

    .badge-type-online {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        color: #1BA665;
    }

    .badge-type-offline {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #8a8c1a;
    }

    .badge-type-hybrid {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        color: #0369a1;
    }

    .badge-published {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        color: #1BA665;
    }

    .badge-unpublished {
        background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
        color: #64748b;
    }

    .action-buttons {
        display: flex;
        gap: 4px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-action {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 0.75rem;
        text-decoration: none;
    }

    .btn-view {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        color: #0369a1;
    }

    .btn-view:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
    }

    .btn-edit {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        color: #1BA665;
    }

    .btn-edit:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(27, 166, 101, 0.2);
    }

    .btn-toggle {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        color: #8a8c1a;
    }

    .btn-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(138, 140, 26, 0.2);
    }

    .btn-delete {
        background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
        color: #991b1b;
    }

    .btn-delete:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(153, 27, 27, 0.2);
    }

    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #64748b;
    }

    .empty-state-icon {
        font-size: 3rem;
        margin-bottom: 16px;
        opacity: 0.5;
    }

    .empty-state-text {
        font-size: 1.125rem;
        font-weight: 500;
    }

    .pagination-container {
        display: flex;
        justify-content: center;
        margin-top: 30px;
        padding: 20px;
    }

    .pagination {
        display: flex;
        gap: 8px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        text-decoration: none;
        color: #1e293b;
        transition: all 0.3s ease;
    }

    .pagination a:hover {
        background: var(--light-bg);
        border-color: var(--secondary-color);
    }

    .pagination .active span {
        background: var(--primary-gradient);
        color: white;
        border-color: transparent;
    }

    @media (max-width: 768px) {
        .page-header-content {
            flex-direction: column;
            gap: 16px;
            text-align: center;
        }

        .page-header h1 {
            font-size: 1.5rem;
        }

        .btn-add-course {
            width: 100%;
            justify-content: center;
        }

        .courses-table thead th {
            font-size: 0.8rem;
            padding: 12px 8px;
        }

        .courses-table tbody td {
            padding: 12px 8px;
            font-size: 0.9rem;
        }

        .course-description {
            display: none;
        }

        .action-buttons {
            flex-wrap: wrap;
        }
    }

