/* ==================================================
   General Body
================================================== */
body {
    font-family: Rockwell, sans-serif;
    background: #f8f9fa;
    color: #212529;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================================================
   Table Styling
================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.table th {
    background: #0b6ef6;
    color: #fff;
    font-weight: 600;
}

.table td img {
    width: 100px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Action List Styling */
.table td ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table td ul li {
    margin: 4px 0;
}

.table td ul li a {
    color: #0b6ef6;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.table td ul li a:hover {
    color: #084298;
    text-decoration: underline;
}

/* ==================================================
   Buttons
================================================== */
input[type="submit"], .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: #0b6ef6;
    color: #fff;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

input[type="submit"]:hover, .btn:hover {
    background: #084298;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* লিঙ্কগুলোর মধ্যে স্পেস */
    justify-content: center;
}

/* Common Button Style */
.action-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* আইকন এবং টেক্সটের মধ্যে স্পেস */
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

/* আলাদা আলাদা বাটনের কালার */
.upload-btn { background-color: #0d6efd; }
.upload-btn:hover { background-color: #084298; }

.view-btn { background-color: #198754; }
.view-btn:hover { background-color: #0f5132; }

.delete-btn { background-color: #dc3545; }
.delete-btn:hover { background-color: #842029; }

.home-btn { background-color: #6c757d; }
.home-btn:hover { background-color: #343a40; }

/* Responsive: ছোট স্ক্রিনে বাটন লাইন পরিবর্তন */
@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==================================================
   Selection Inputs
================================================== */
.selection {
    width: 450px;
    height: 32px; /* Adjust height to show more options at once */
    padding: 5px;
    border: 1px solid #05b77c;
    border-radius: 4px;
    color: #1152ac;
}

/* ==================================================
   Pagination
================================================== */
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0b6ef6;
    transition: 0.3s;
}

.pagination a:hover {
    background: #0b6ef6;
    color: #fff;
}

.pagination .active {
    background: #0b6ef6;
    color: #fff;
    border-color: #0b6ef6;
}

.pagination .disabled {
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* ==================================================
   Image Preview
================================================== */
#blah {
    display: block;
    margin-top: 10px;
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ==================================================
   Responsive Tables & Buttons
================================================== */
@media screen and (max-width: 768px) {
    .table th, .table td {
        font-size: 14px;
        padding: 8px 10px;
    }

    input[type="submit"], .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ==================================================
   Navbar & Menu Styling
================================================== */
.menu-container {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.menu li {
    position: relative; /* Submenu absolute জন্য */
}

.menu li a {
    text-decoration: none;
    color: #0b6ef6;
    font-weight: 600;
    font-size: 17px;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
    transition: color 0.3s ease;
}

/* underline effect with pseudo-element */
.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #0b6ef6;
    transition: width 0.3s ease;
}

.menu li a:hover {
    color: #084298; /* Hover color */
}

.menu li a:hover::after {
    width: 100%; /* underline slide-in */
}

/* Dropdown menu */
.menu li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px 0;
    list-style: none;
    min-width: 220px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 1000;
}

.menu li .submenu li {
    width: 100%;
}

.menu li .submenu li a {
    padding: 8px 15px;
    color: #212529;
    font-weight: 500;
    display: block;
    text-decoration: none;
    position: relative;
}

.menu li .submenu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #0b6ef6;
    transition: width 0.3s ease;
}

.menu li .submenu li a:hover {
    color: #0b6ef6;
}

.menu li .submenu li a:hover::after {
    width: 100%;
}

/* Show dropdown */
.menu li.dropdown:hover .submenu {
    display: block;
}

/* ==================================================
   Social Icons
================================================== */
.menu li.social a {
    font-size: 18px;
    color: #0b6ef6;
    transition: 0.3s;
}

.menu li.social a:hover {
    color: #084298;
}

/* General Section */
#online-courses {
    padding: 50px 20px;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6f9;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #1a73e8;
    font-size: 2rem;
    margin-bottom: 5px;
}

.section-header p {
    color: #555;
    font-size: 1rem;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 2px solid #1a73e8; /* Table outer border */
}

.styled-table thead tr {
    background-color: #1a73e8;
    color: #ffffff;
    text-align: left;
    font-weight: 600;
}

.styled-table th, .styled-table td {
    padding: 15px 12px;
    font-size: 0.95rem;
    vertical-align: middle;
    border: 1px solid #1a73e8; /* cell borders */
}

.styled-table tbody tr {
    background-color: #ffffff;
    transition: background 0.3s, transform 0.3s;
}

.styled-table tbody tr:hover {
    background-color: #e3f2fd;
    transform: translateX(3px);
}

/* Certificate Image */
.certificate-img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.certificate-img:hover {
    transform: scale(1.08);
}

/* No courses */
.no-courses {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 25px;
}

.pagination .page-btn {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 16px;
    border-radius: 6px;
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.pagination .page-btn:hover {
    background: #155ab6;
}

.pagination .page-btn.active {
    background: #155ab6;
    font-weight: 600;
}

.pagination .page-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}
