/* ---------------------------
   Logo
--------------------------- */
body.toplevel_page_vidlog,
body.vidlog_page_vidlog-page-views {
    background: #fffdf8;
}

body.toplevel_page_vidlog #wpcontent,
body.vidlog_page_vidlog-page-views #wpcontent {
    background: #fffdf8;
}

body.toplevel_page_vidlog #wpbody-content,
body.vidlog_page_vidlog-page-views #wpbody-content {
    background: #fffdf8;
}

.vidloglogo {
    width: 240px;
    height: auto;
    display: block;
}

.vidlog-logo-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    align-items: stretch;
    gap: 24px;
    min-height: 172px;
    margin: 8px 0 22px;
    padding: 26px 28px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 92% 20%, rgba(77, 255, 255, 0.28), transparent 28%),
        linear-gradient(45deg, #000033, #0a1d38 42%, #03a9f4);
    box-shadow: 0 8px 24px rgba(10, 29, 56, 0.18);
    box-sizing: border-box;
}

.vidlog-logo-header .vidloglogo {
    width: min(360px, 100%);
    height: auto;
    margin-right: 0;
    display: block;
}

.vidlog-logo-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.vidlog-banner-copy {
    max-width: 760px;
    min-width: 0;
    margin: 0;
    color: #fff;
}

.vidlog-banner-copy h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.vidlog-banner-copy h1 .dashicons {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0a4f99;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    flex: 0 0 32px;
}

.vidlog-banner-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
}

.vidlog-header-notice {
    justify-self: end;
    align-self: start;
    max-width: 760px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 10px 24px rgba(0, 0, 51, 0.14);
    box-sizing: border-box;
}

.vidlog-header-notice a {
    color: #fff;
    font-weight: 700;
}

.vidlog-admin-intro {
    margin: 8px 0 18px;
    padding: 30px 36px;
    border: 1px solid rgba(3, 169, 244, 0.34);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 14%, rgba(77, 255, 255, 0.16), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #edf8ff 54%, #dff4ff 100%);
    box-shadow: 0 14px 34px rgba(10, 29, 56, 0.1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.vidlog-admin-intro::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 42%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(3, 169, 244, 0.06));
    pointer-events: none;
}

.vidlog-admin-intro-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin-bottom: 22px;
    padding: 7px 14px 7px 8px;
    border: 1px solid rgba(3, 169, 244, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(10, 29, 56, 0.08);
    color: #0a1d38;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.vidlog-admin-intro-brand .dashicons {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #000033, #03a9f4);
    color: #fff;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    flex: 0 0 28px;
}

.vidlog-admin-intro p {
    margin: 0;
    color: #52667c;
    font-size: 15px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.wrap:has(.vidlog-video-table-wrapper),
.wrap:has(.vidlog-table-wrapper) {
    max-width: 1280px;
}

.wrap:has(.vidlog-video-table-wrapper),
.wrap:has(.vidlog-page-table-wrapper) {
    max-width: none;
}

.vidlog-admin-notice {
    color: #3c434a;
    margin: 0 0 18px;
}

.vidlog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.vidlog-action-button.button {
    min-height: 36px;
    padding: 4px 16px;
    border-radius: 999px;
    font-weight: 600;
    line-height: 26px;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.vidlog-action-button.button:hover,
.vidlog-action-button.button:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(10, 29, 56, 0.14);
}

.vidlog-action-button-primary.button {
    background: #03a9f4;
    border: none;
    color: #fff;
}

.vidlog-action-button-primary.button:hover,
.vidlog-action-button-primary.button:focus {
    background: #0288d1;
    border: #0277bd;
    color: #fff;
}

.vidlog-action-button-danger.button {
    background: #fff;
    border-color: #03a9f4;
    color: #0a1d38;
}

.vidlog-action-button-danger.button:hover,
.vidlog-action-button-danger.button:focus {
    background: #f0f9ff;
    border-color: #03a9f4;
    color: #0a1d38;
}

/* ---------------------------
   Typography 
--------------------------- */
.vstats-list-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.vstats-list-box ol {
    margin: 0;
    padding-left: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.vstats-list-box li {
    margin-bottom: 6px;
    font-size: 14px;
}

select {
    padding: 4px 8px;
    border-radius: 4px;
}
/* Center checkboxes inside table rows */
table.widefat td input[type="checkbox"],
table.widefat td input[type="radio"] {
    display: block;
    margin: 0 auto;
}

/* ---------------------------
   Tables
--------------------------- */
.vstats-list-table,
.widefat {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid rgba(3, 169, 244, 0.18)!important;
    border-radius: 6px;

}

.vidlog-video-table-wrapper,
.vidlog-page-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border:1px solid rgba(3, 169, 244, 0.18);
    border-radius:12px;
}

.vidlog-video-table,
.vidlog-page-table {
    width: 100%;
    table-layout: fixed;
}

.vstats-list-table th,
.vstats-list-table td,
.widefat th,
.widefat td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    max-width: 250px; 
}

.vstats-list-table th,
.widefat th {
    background: #d2e8f6;
    color: #1d2327;
    font-weight: 600;
    border-bottom:1px solid #f0f0f1!important;
}

.widefat tbody tr:hover td {
    background: #dfeef8;
}

/* Hover to see full text */
.widefat td:hover {
    white-space: normal;
    word-break: break-all;
    background: #f9f9f9;
    z-index: 1;
    position: relative;
}
.vidlog-month-year {
    font-weight: bold;
    color: #000; /* optional: change color if you like */
}

/* ---------------------------
   Checkbox & Flags
--------------------------- */
.ms-select-row,
#ms-select-all {
    cursor: pointer;
    margin: 0 auto;
    display: block;
}

.widefat img {
    vertical-align: middle;
    width: 16px;
    height: auto;
    border-radius: 2px;
    margin-right: 4px;
}

/* ---------------------------
   Buttons
--------------------------- */
.ms-delete-row,
.ms-delete-page-row {
    margin: 0;
}

.vidlog-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #03a9f4;
    border-radius: 999px;
    background: #fff;
    color: #0a1d38;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.vidlog-icon-button:hover,
.vidlog-icon-button:focus {
    background: #f0f9ff;
    border-color: #03a9f4;
    color: #0a1d38;
    box-shadow: 0 6px 14px rgba(3, 169, 244, 0.18);
    transform: translateY(-1px);
}

.widefat .vidlog-icon-button img {
    width: 16px;
    height: 16px;
    margin: 0;
    border-radius: 0;
    display: block;
}

.vidlog-pagination-button.button {
    min-height: 34px;
    padding: 3px 14px;
    border-radius: 999px;
    border-color: #03a9f4;
    color: #0a1d38;
    font-weight: 600;
    line-height: 26px;
    background: #fff;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.vidlog-pagination-button.button:hover,
.vidlog-pagination-button.button:focus {
    background: #f0f9ff;
    border-color: #0288d1;
    color: #0a1d38;
    box-shadow: 0 6px 14px rgba(3, 169, 244, 0.16);
    transform: translateY(-1px);
}

.vidlog-pagination-button.button.disabled,
.vidlog-pagination-button.button.disabled:hover,
.vidlog-pagination-button.button.disabled:focus {
    background: #f6f7f7;
    border-color: #dcdcde;
    color: #8c8f94;
    box-shadow: none;
    transform: none;
    cursor: default;
}

.button.button-danger,
.button-danger {
    border-color: #03a9f4;
    color: #0a1d38;
}

.button.button-danger:hover,
.button-danger:hover {
    border-color: #03a9f4;
    color: #0a1d38;
}

input[type=checkbox],
input[type=radio] {
    margin-left: 20px;
}
/* VidLog Upgrade submenu only */
#toplevel_page_vidlog li a[href$="vidlog-upgrade"] {
    background-color: #0288d1 !important; 
    color: #fff !important;               
}

/* Hover effect */
#toplevel_page_vidlog li a[href$="vidlog-upgrade"]:hover {
    background-color: #03a9f4 !important; /* slightly darker blue */
    color: #fff !important;
}

/* Active/current submenu item */
#toplevel_page_vidlog li.current a[href$="vidlog-upgrade"] {
    background-color: #03a9f4 !important; /* active highlight */
    color: #fff !important;
}


/* ---------------------------
   Admin page
--------------------------- */
/* Label styling */
.vidlog-month-label {
    margin-left: 0;
    white-space: nowrap;
}

.vidlog-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(3, 169, 244, 0.18);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(10, 29, 56, 0.05);
}

.vidlog-filter-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* Dropdown styling */
.vidlog-month-selector {
    padding: 3px 8px;
    font-size: 13px!important;
    line-height: 1.4;
    border: 1px solid #2271b1!important;
    border-radius: 12px!important;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
    vertical-align: middle;
    min-width: 160px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display:inline-block;
}

/* Focus state */
.vidlog-month-selector:focus {
    border-color: #0073aa;
    box-shadow: 0 0 2px rgba(0,115,170,.6) inset;
    outline: none;
}

@media (max-width: 782px) {
    .vidlog-logo-header {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 22px;
    }

    .vidlog-logo-main {
        max-width: 100%;
    }

    .vidlog-banner-copy h1 {
        font-size: 24px;
    }

    .vidlog-header-notice {
        justify-self: stretch;
        max-width: none;
        white-space: normal;
    }
}
