/* Course Enrollment & Exam Manager Styles */

/* Admin Layout */
.reg {
    display: flex;
    justify-content: center;
    margin: 0px auto;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #C7003A;
    gap: 0px;
}

.reg1 {
    width: 13%;
    overflow-y: auto;
    padding: 20px 10px;
    background: #DDF0EB;
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 10px 0px 10px 10px;
    border-radius: 5px;
}

.reg1::-webkit-scrollbar {
    display: none;
}

.reg1 span {
    font-size: 18px;
}

.reg2 {
    width: 85%;
    padding: 20px;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #DDF0EB;
    margin: 10px 10px 0px 5px;
    border-radius: 5px;
}

.reg2::-webkit-scrollbar {
    display: none;
}

/* Menu Styles */
.reg ul {
    list-style-type: none;
    padding-left: 0;
    color: #fff;
}

.reg ul li {
    margin-bottom: 10px;
}

.reg ul li a {
    text-decoration: none;
    color: #000;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    display: block;
}

.reg ul li a:hover {
    background-color: #015D42;
    color: #fff;
}

.active-menu {
    color: #fff !important;
    font-weight: bold;
    background: #015D42;
    padding: 10px;
    border-radius: 4px;
    display: block;
    text-decoration: none;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.course-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.course-item:hover {
    transform: translateY(-5px);
}

.course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 20px;
}

.course-content h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.course-content h3 a {
    text-decoration: none;
    color: inherit;
}

.course-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.course-price {
    font-size: 18px;
    font-weight: bold;
    color: #045A44;
    margin-bottom: 15px;
}

.course-button {
    background: #045A44;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.course-button:hover {
    background: #034532;
    color: #fff;
}

/* Forms */
form {
    max-width: 600px;
    margin: 20px 0;
}

form p {
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="password"],
form input[type="url"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

form textarea {
    height: 100px;
    resize: vertical;
}

form button,
form input[type="submit"] {
    background: #045A44;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

form button:hover,
form input[type="submit"]:hover {
    background: #034532;
}

/* Tables */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.wp-list-table th,
.wp-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wp-list-table th {
    background: #f9f9f9;
    font-weight: bold;
}

.wp-list-table tr:hover {
    background: #f5f5f5;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.button:hover {
    background: #005a87;
    color: #fff;
}

.button-danger {
    background: #dc3232;
}

.button-danger:hover {
    background: #a00;
}

.button-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* Notices */
.notice {
    background: #fff;
    border-left: 4px solid #00a0d2;
    padding: 12px;
    margin: 15px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.notice-success {
    border-left-color: #46b450;
}

.notice-error {
    border-left-color: #dc3232;
}

.notice-warning {
    border-left-color: #ffb900;
}

/* Dashboard Widgets */
.ceem-dashboard-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.ceem-dashboard-widget h3 {
    margin-top: 0;
    color: #333;
}

.ceem-stat-box {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 15px;
}

.ceem-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #045A44;
    display: block;
}

.ceem-stat-label {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reg {
        flex-direction: column;
        height: auto;
    }
    
    .reg1 {
        width: 100%;
        margin: 10px;
    }
    
    .reg2 {
        width: 100%;
        margin: 0 10px 10px 10px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-list-table {
        font-size: 12px;
    }
    
    .wp-list-table th,
    .wp-list-table td {
        padding: 8px;
    }
}

/* Single Course Page */
.single-course-header {
    background: #f9f9f9;
    padding: 40px 0;
    margin-bottom: 30px;
}

.single-course-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.course-meta-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
}

.course-sections {
    margin: 30px 0;
}

.course-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.course-section-header {
    background: #f9f9f9;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.course-section-content {
    padding: 20px;
    display: none;
}

.course-section.active .course-section-content {
    display: block;
}

/* Enrollment Form */
.enrollment-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.enrollment-form h3 {
    color: #045A44;
    margin-bottom: 20px;
    text-align: center;
}

/* Shortcode Styles */
.my-courses-grid {
    margin: 20px 0;
}

.my-course-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.my-course-item .course-thumbnail {
    flex-shrink: 0;
    width: 150px;
}

.my-course-item .course-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.my-course-item .course-info {
    flex: 1;
}

.my-course-item .course-info h4 {
    margin: 0 0 10px 0;
    color: #045A44;
}

.my-course-item .course-info h4 a {
    text-decoration: none;
    color: inherit;
}

.my-course-item .course-info h4 a:hover {
    text-decoration: underline;
}

.course-search-form {
    margin: 20px 0;
}

.search-input-group {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.search-input-group input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input-group input[type="text"]:focus {
    border-color: #045A44;
}

.search-input-group button {
    background: #045A44;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-input-group button:hover {
    background: #034532;
}

.enrollment-status {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.enrollment-status.enrolled {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.enrollment-status.not-enrolled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.enrollment-status.not-logged-in {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.enrollment-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.enrollment-status .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsive Design for Shortcodes */
@media (max-width: 768px) {
    .my-course-item {
        flex-direction: column;
    }
    
    .my-course-item .course-thumbnail {
        width: 100%;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input-group input[type="text"],
    .search-input-group button {
        width: 100%;
    }
}
