






/* --- video manage page admin 
Modern Form Styles --- */







/* --- Admin Page Layout & Cards --- */
.admin-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}
.card-header {
    background-color: #f8f9fa;
    padding: 15px 25px;
    margin: 0;
    font-size: 1.2em;
    border-bottom: 1px solid #e9ecef;
}
.card-body {
    padding: 25px;
}

/* --- Modern Form Styles --- */
.styled-form .form-group {
    margin-bottom: 20px;
}
.styled-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}
.styled-form input[type="text"],
.styled-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.styled-form input[type="text"]:focus,
.styled-form textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* --- Modernized Table Styles --- */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
}
.responsive-table th,
.responsive-table td {
    padding: 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}
.responsive-table thead tr {
    background-color: #f8f9fa;
}
.responsive-table th {
    font-weight: 600;
    color: #495057;
    font-size: 0.85em;
    text-transform: uppercase;
}
.responsive-table tbody tr:last-of-type td {
    border-bottom: none;
}
.responsive-table tbody tr:hover {
    background-color: #f1f3f5;
}

/* --- Polished Button Styles --- */
.btn, .btn-delete {
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}
.btn:hover, .btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn { background-color: #0d6efd; } /* Blue for primary actions */
.btn-delete { background-color: #dc3545; } /* Red for delete */

/* --- Responsive Table View --- */
@media screen and (max-width: 768px) {
    .responsive-table thead { display: none; }
    .responsive-table tr { display: block; margin-bottom: 15px; border: 1px solid #e9ecef; border-radius: 8px; }
    .responsive-table td { display: block; text-align: right; padding-left: 50%; position: relative; border-bottom: 1px solid #e9ecef; }
    .responsive-table td:last-child { border-bottom: none; }
    .responsive-table td:before { content: attr(data-label); position: absolute; left: 15px; text-align: left; font-weight: bold; }
}








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

        /* --- Video Grid Layout --- */
        .video-grid {
            display: grid;
            /* Creates a responsive grid with columns at least 320px wide */
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem; /* The space between video items */
        }

        /* --- Video Item Card Styling --- */
        .video-item {
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            overflow: hidden; /* Ensures the video respects the border-radius */
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .video-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        }

        .video-item h3 {
            font-size: 1.1rem;
            font-weight: 500;
            padding: 1rem 1.25rem;
            margin: 0;
            line-height: 1.4;
        }

        /* --- 16:9 Responsive Video Wrapper --- */
        .video-wrapper {
            position: relative;
            /* 9 / 16 = 0.5625 or 56.25% */
            padding-top: 56.25%; 
            height: 0;
            background-color: #000; /* Shows a black background while player loads */
        }

        /* Target the player div and the iframe YouTube creates */
        .video-wrapper > div,
        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }