/**
 * Custom styles for admin panel
 */

/* ======= LOGIN PAGE STYLES ======= */
body.login-page {
    background: #f4f6f9;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.login-container {
    width: 100%;
    max-width: 350px; /* Reduced width for better proportions */
    padding: 20px 25px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h1 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #222;
    font-weight: bold;
}

.login-header p {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

/* Fix for the blue label background */
label {
    background: transparent !important;
    color: #333 !important;
    font-weight: normal;
    padding: 0 !important;
    display: block;
    margin-bottom: 8px;
}

/* Input field customization */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    background: #fff;
}

/* Fix for input icons */
.input-icon {
    display: none; /* Hide default icons */
}

/* Login button customization */
input[type="submit"],
button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 5px;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #0069d9;
}

/* Link at the bottom */
.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #007bff;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Alert styling */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* ======= DASHBOARD STYLES ======= */
.info-box-content .info-box-number {
    font-weight: 700;
}

.livestream-status .alert {
    margin-bottom: 0;
}

.livestream-preview iframe {
    border: none;
}

/* ======= VIDEO MANAGEMENT ======= */
.video-thumbnail img {
    border-radius: 3px;
}

/* File input label text overflow fix */
.custom-file-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ======= CARD STYLES ======= */
.card-header .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ======= CHART STYLES ======= */
.views-chart-container {
    position: relative;
    height: 300px;
}

/* ======= EDITOR STYLES ======= */
.ck-editor__editable {
    min-height: 200px;
}

/* ======= VIDEO PLAYER STYLES ======= */
.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-player-wrapper video,
.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ======= TABLE STYLES ======= */
.table th {
    font-weight: 600;
}

.table-actions .btn {
    margin-right: 5px;
}

.table-actions .btn:last-child {
    margin-right: 0;
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 768px) {
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .login-container {
        max-width: 300px;
        padding: 15px;
    }
}