/* ---------------------------------------------------------------------
   ULiked TV & Backblaze Combined Style Sheet
   Dark background + purple buttons + orange accents
   --------------------------------------------------------------------- */

/* General Form Styling */
#video-upload-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}
#video-upload-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}
#video-upload-form input[type="file"],
#video-upload-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
#video-upload-form button {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#video-upload-form button:hover {
    background-color: #005f87;
    transform: scale(1.02);
}
#video-upload-form button:focus {
    outline: 2px solid #005f87;
    outline-offset: 2px;
}

/* Success Message */
.success-message {
    margin-top: 10px;
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-size: 14px;
}

/* Error Message */
.error-message {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
}

/* Bucket List */
#bucket-list ul {
    list-style: none;
    padding: 0;
}
#bucket-list ul li {
    margin: 10px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
#bucket-list ul li:hover {
    background-color: #f1f1f1;
}
#bucket-list ul li button {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#bucket-list ul li button:hover {
    background-color: #c82333;
    transform: scale(1.1);
}
#bucket-list ul li button:focus {
    outline: 2px solid #c82333;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #video-upload-form {
        padding: 10px;
    }
    #video-upload-form button {
        width: 100%;
        text-align: center;
    }
    #bucket-list ul li {
        flex-direction: column;
        align-items: flex-start;
    }
    #bucket-list ul li button {
        margin-top: 5px;
        width: 100%;
    }
}

/* ---------------------------------------------------------------------
   WP Backblaze Uploaded Files Table – Dark Mode + Branding
   --------------------------------------------------------------------- */
   .wp-backblaze-table-wrapper {
    width: 100%;
    overflow-x: auto;
}
   
.wp-backblaze-uploaded-files-table {
    width: 100%;
    border-collapse: collapse;
    color: #eee;
    margin: 20px 0;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-align: left;
}
.wp-backblaze-uploaded-files-table th,
.wp-backblaze-uploaded-files-table td {
    border: 1px solid #333;
    padding: 8px;
}
.wp-backblaze-uploaded-files-table th {
    background-color: #1a1a1a;
    color: #ff6600; /* orange accent */
}
.wp-backblaze-uploaded-files-table tr:nth-child(odd) {
    background-color: #111;
}
.wp-backblaze-uploaded-files-table tr:nth-child(even) {
    background-color: #1a1a1a;
}
.wp-backblaze-uploaded-files-table tr:hover {
    background-color: #333;
}

/* File name / warning styles */
.wp-backblaze-file-name {
    font-style: italic;
    color: #aaa;
    margin-top: 5px;
}
.wp-backblaze-file-warning {
    color: red;
    font-style: italic;
    display: none;
}

/* Copy/Delete Buttons inside table */
.wp-backblaze-copy-btn,
.wp-backblaze-delete-btn {
    background-color: #6a0dad; /* deep purple */
    color: #fff !important;
    border: none;
    border-radius: 3px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color .2s ease;
}
.wp-backblaze-copy-btn:hover,
.wp-backblaze-delete-btn:hover {
    background-color: #4b0082; /* darker purple */
}

/* Pagination */
.wp-backblaze-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}
.wp-backblaze-pagination button {
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    background-color: #6a0dad;
    color: #fff;
    border: none;
    border-radius: 3px;
    transition: background-color .2s ease;
}
.wp-backblaze-pagination button:hover:not(:disabled) {
    background-color: #4b0082;
}
.wp-backblaze-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Upload Progress Bar Styling */
#upload-progress-wrapper {
    margin-top: 20px;
}
#upload-progress-wrapper .progress-bar-container {
    background-color: #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    height: 24px;
    width: 100%;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
#upload-progress-bar {
    background-color: #0073aa;
    height: 100%;
    width: 0%;
    color: white;
    font-size: 13px;
    text-align: center;
    line-height: 24px;
    transition: width 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}
#upload-status-message {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

/* ---------------------------------------------------------------------
   WP Admin Postbox & Form Fields (for bucket & URL converter pages)
   --------------------------------------------------------------------- */
/* Adjust padding for section titles */
.postbox .hndle {
    padding-left: 10px;
}
/* Add spacing between sections */
.postbox {
    margin-bottom: 20px;
}
/* Form field styling in admin */
form input[type="text"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
}
/* Bucket form inline styling */
.bucket-form input,
.bucket-form button {
    display: inline-block;
    margin-right: 10px;
}
/* Add spacing below the create bucket button */
.bucket-form button {
    margin-bottom: 20px !important;
}

/* ---------------------------------------------------------------------
   URL Converter Page Styling
   --------------------------------------------------------------------- */
.url-converter-wrapper {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}
.url-converter-wrapper h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #23282d;
    padding-left: 10px;
}
.url-converter-wrapper form label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #333;
}
.url-converter-wrapper input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    box-sizing: border-box;
}
.url-converter-wrapper button {
    padding: 10px 16px;
    font-size: 14px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}
.url-converter-wrapper button:hover {
    background-color: #005f87;
}
.url-converter-result {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f7ff;
    border: 1px solid #b3d4fc;
    border-radius: 4px;
    font-size: 14px;
    word-break: break-all;
}
.url-converter-result input[type="text"] {
    background: #f9f9f9;
    border: 1px dashed #999;
    padding: 8px;
    width: 100%;
    font-family: monospace;
}
.bbu-inline-message {
    transition: all 0.5s ease;
    opacity: 0;
}
.bbu-inline-message.show {
    opacity: 1;
}
.bbu-inline-success {
    background: #e7f9e8;
}
.bbu-inline-success td {
    padding: 10px;
    color: #207520;
    font-weight: 600;
    text-align: center;
}
.bbu-inline-error {
    background: #fbeaea;
}
.bbu-inline-error td {
    padding: 10px;
    color: #a33131;
    font-weight: 600;
    text-align: center;
}
