* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #0074D9;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: #fff;
    color: #ff0000;
    padding: 20px 0;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 10px;
    padding: 5px;
    border: 2px solid #1e3a23;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c5530;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #333;
}

/* Main Content */
.main-content {
    background-color: #8BC34A;
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Carruseles */
.carousel-section {
    margin-bottom: 50px;
}

.carousel-title {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #2c5530;
    padding-bottom: 10px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: #f9f9f9;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.video-item {
    min-width: 100%;
    padding: 15px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
}

.carousel-btn {
    background-color: #2c5530;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    min-width: 100px;
}

.carousel-btn:hover {
    background-color: #1e3a23;
}

.carousel-counter {
    font-weight: bold;
    color: #2c5530;
    min-width: 60px;
    text-align: center;
}

.empty-carousel {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}

/* Estilos para formularios en add_videos.php */
.add-video-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-title {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2c5530;
    outline: none;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.submit-btn {
    background-color: #2c5530;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
}

.submit-btn:hover {
    background-color: #1e3a23;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

/* Estilos para gestión de videos */
.videos-list {
    margin-top: 40px;
}

.carousel-videos {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5530;
}

.carousel-videos h4 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.video-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.video-item-admin {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-preview {
    margin-bottom: 15px;
}

.video-preview iframe {
    border-radius: 6px;
    border: 2px solid #ddd;
}

.video-actions {
    margin-top: 10px;
}

.delete-form {
    margin: 0;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    width: 100%;
}

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

.no-videos {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

.mensaje {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.mensaje.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background-color: #5a6268;
}