/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file. 
 */

 @import url('https://fonts.googleapis.com/css?family=Raleway');

.pwpo-popup.pwpo-popup-card {
    margin: 0 auto;
    width: 50%;
    max-width: 520px;
    min-width: 280px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.pwpo-text-green {
    color: #228B22;
}

.pwpo-popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}
.pwpo-popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}
.pwpo-popup .close:hover {
    color: #06D85F;
}
.pwpo-popup .content {
    max-height: 30%;
    overflow: auto;
}

.pwpo-popup-results-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

#pwpo-popup-close-btn.pwpo-popup-close-btn {
    display: none;
    margin: 0;
}

.pwpo-popup-results {
    padding: 8px 24px 15px;
    background: #fff;
    border-radius: 0 0 4px 4px;
}

.pwpo-popup-results-summary {
    margin: 0 0 12px;
    font-size: 14px;
    color: #444;
    text-align: center;
    font-family: Tahoma, Arial, sans-serif;
}

.pwpo-popup-stats {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 15px;
}

.pwpo-popup-stats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.pwpo-popup-stats li:last-child {
    border-bottom: none;
}

.pwpo-stat-label {
    color: #555;
}

.pwpo-popup-stats .pwpo-stat-failed {
    color: #dc3545;
}

.pwpo-popup-results-total {
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #666;
    font-family: Tahoma, Arial, sans-serif;
}

#pwpo-publitioBar.pwpo-progress-idle {
    animation: none;
    background: #e0e0e0;
}

.pwpo-popup-title {
    background: white;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 20px 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
    letter-spacing: 0.01em;
    display: none;
}

#pwpoPublitioProgress.pwpo-popup-progress-wrap {
    width: 100%;
    background-color: #fff;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.pwpo-progress-stack {
    position: relative;
    height: 52px;
    margin: 0;
    background: #e6e6e6;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

#pwpo-publitioBar.pwpo-progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    z-index: 1;
    border-radius: 0;
    background: linear-gradient(90deg, #4099de 33%, #5ab4f5 50%, #4099de 66%);
    background-size: 300% 100%;
    animation: pwpo-shimmer 1.8s linear infinite;
    transition: width 0.3s ease;
}

.pwpo-progress-label,
#pwpoLoadPublitioNumber {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.35;
    pointer-events: none;
}

@keyframes pwpo-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pwpo-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    opacity: 1;
    display: none;
}

 .pwpo-requires-auth {
    opacity: 0.5;
    pointer-events: none;
 }

 .pwpo-page-warning-message {
     display: none;
     align-items: center;
     gap: 10px;
     color: rgba(133, 77, 14);
     font-size: 0.8rem;
     font-weight: bold;
     padding-left: 10px;
     background: rgb(254, 215, 170);
     border-left: 5px solid rgba(133, 77, 14, 0.5);
 }
 
 .pwpo-page-warning-message svg {
     color: rgba(133, 77, 14, 0.5);
     height: 25px;
 }
 
 .pwpo-page-wrapper {
     position: relative;
     margin-top: 20px;
     margin-right: 20px;
     max-width: 1280px;
     font-family: 'Raleway', sans-serif;
     font-size: 1.5rem;
     background: white;
     box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;}
 
 .pwpo-page-header {
     display: flex;
     align-items: center;
     width: 100%;
     height: 100px;
     background: white;
     justify-content: space-between;
 }
 
 .pwpo-page-logo {
     margin-left: 10px;
 }
 
 .pwpo-page-data {
     display: flex;
     height: 120px;
     width: 100%;
     align-items: center;
     border-bottom: 1px solid #ccc;
     border-top: 1px solid #ccc;
     flex-direction: row;
 }
 
 .pwpo-page-data-item {
     height: 120px;
     width: calc(100% / 3);
     border-right: 1px solid #eeeeee7d;
     display: flex;
     flex-direction: row;
     align-items: center;
     justify-content: space-evenly;
 }
 
 .pwpo-page-data-item:last-child {
     border-right: none;
 }
 
 .pwpo-storage-info,
 .pwpo-bandwidth-info,
 .pwpo-plan-info {
     font-size: .8rem;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
 }
 
 .pwpo-storage-used,
 .pwpo-bandwidth-used {
     border-bottom: 1px solid #eeeeee7d;
     padding-bottom: .5rem;
     margin-bottom: .5rem;
 }
 
 /* Donut Chart Styles */
 .pwpo-storage-chart-container,
 .pwpo-bandwidth-chart-container {
     display: flex;
     justify-content: center;
     align-items: center;
     height: 100%;
 }
 
 .pwpo-storage-chart,
 .pwpo-bandwidth-chart {
     position: relative;
     width: 85px;
     height: 85px;
     border-radius: 50%;
     background: conic-gradient(
         #e5e7eb 0deg,
         #e5e7eb 360deg
     );
     display: flex;
     align-items: center;
     justify-content: center;
 }
 
 .pwpo-storage-inner,
 .pwpo-bandwidth-inner {
     width: 65px;
     height: 65px;
     background: white;
     border-radius: 50%;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     position: relative;
 }
 
 .pwpo-storage-percentage,
 .pwpo-bandwidth-percentage {
     font-size: 1rem;
     font-weight: bold;
     color: #4099de;
     line-height: 1;
 }
 
 .pwpo-emphasize {
     color: #4099de;
     font-weight: bold;
 }
 
 .pwpo-button {
     background: #4099de;
     color: white;
     padding: 10px 20px;
     border-radius: 5px;
     text-decoration: none;
     font-size: 1rem;
     font-weight: bold;
     cursor: pointer;
     margin-top: 10px;
     transition: background 0.2s ease-in-out;
 }
 
 .pwpo-button:hover,
 .pwpo-button:focus,
 .pwpo-button:active {
     background: #3586d0;
     color: white;
 }
 
 .pwpo-settings-info-title {
     border-bottom: 1px solid #eeeeee7d;
     border-top: 1px solid #ccc;
     padding: 20px 15px;
     margin: 0;
     font-size: 1.2rem;
     font-weight: bold;
 }
 
 .pwpo-settings {
     padding: 10px 20px;
 }
 
 .pwpo-field-wrapper {
     border-bottom: 1px solid #eeeeee7d;
     padding: 10px 0;
     display: flex;
     flex-direction: row;
     align-items: center;
     min-height: 30px;
 }

 .pwpo-field-wrapper.pwpo-files-wrapper {
    align-items: flex-start;
 }
 
 .pwpo-files-checkbox-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
 }

 .pwpo-files-checkbox-item span {
    font-size: .9rem;
    font-weight: bold;
 }
 
 .pwpo-field-wrapper:last-child {
     border-bottom: none;
 }
 
 .pwpo-field-wrapper:first-child {
     padding-top: 0;
 }
 
 .pwpo-field-wrapper label {
     font-size: .9rem;
     font-weight: bold;
     max-width: 300px;
     width: 100%;
     display: block;
     padding-right: 20px;
 }
 
 .pwpo-field-wrapper label small {
     font-size: .7rem;
     color: #666;
     font-weight: normal;
     line-height: 1;
 }
 
.pwpo-field-wrapper input[type="password"],
.pwpo-field-wrapper select {
    max-width: 300px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Slim Select (folder dropdown) — match native select sizing */
.pwpo-field-wrapper #pwpo-default-offloading-folder + .ss-main,
.pwpo-field-wrapper .ss-main {
    max-width: 300px;
    width: 100%;
}

 .pwpo-field-wrapper input[type="checkbox"] {
     width: 20px;
     height: 20px;
     border: 1px solid #ccc;
     border-radius: 5px;
 }
 
 .pwpo-settings-button {
     background: #4099de;
     color: white;
     padding: 10px 20px;
     border-radius: 5px;
     text-decoration: none;
     font-size: 1rem;
     font-weight: bold;
     cursor: pointer;
     border: none;
     outline: none;
     margin: 20px;
     transition: background 0.2s ease-in-out;
 }
 
 .pwpo-settings-button:hover {
     background: #3586d0;
 }

 .pwpo-settings-button.pwpo-danger-button {
    background: #dc3545;
 }

 .pwpo-settings-button.pwpo-danger-button:hover {
    background: #c82333;
 }

 .pwpo-settings-button.pwpo-success-button {
    background: #28a745;
 }

 .pwpo-settings-button.pwpo-success-button:hover {
    background: #218838;
 }

 .pwpo-settings-button.pwpo-warning-button {
    background: #FFCC4D;
 }

 .pwpo-settings-button.pwpo-warning-button:hover {
    background: #FF9900;
 }

 .pwpo-version {
     position: absolute;
     bottom: 0;
     right: 0;
     font-size: .8rem;
     color: #666;
     font-weight: normal;
     line-height: 1;
     margin: 5px;
 }
 
 .pwpo-page-review {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: .8rem;
     font-weight: normal;
     line-height: 1.5;
     margin: 20px;
     border: 1px solid #4099de;
     border-radius: 5px;
     color: black;
     padding: 10px 20px 10px 10px;
     text-decoration: none;
     transition: background-color 0.2s ease-in-out;
 }
 
 .pwpo-page-review:hover,
 .pwpo-page-review:focus,
 .pwpo-page-review:active {
     background-color: #4099de;
     color: white;
 }

 .pwpo-page-review:hover svg {
     color: white;
 }

 .pwpo-page-review:hover .pwpo-emphasize {
    color: white;
}
 
 .pwpo-page-review svg {
     width: 30px;
     height: 30px;
     color: #4099de;
 }
 
 .pwpo-page-footer-block {
     height: 120px;
     padding: 20px 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 40px;
     font-size: .8rem;
     text-decoration: none;
     color: #666;
 }
 
 .pwpo-page-footer-block svg {
     flex-shrink: 0;
     height: 50px;
     color: #4099de;
 }
 
 .pwpo-page-footer-block:hover .pwpo-emphasize {
     text-decoration: underline;
 }

 .pwpo-buttons-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
 }
 
 @media (max-width: 1280px) {
     .pwpo-page-footer-block {
         gap: 10px;
         padding: 10px;
     }
 }
 
 @media (max-width: 768px) {
     .pwpo-page-data {
         flex-wrap: wrap;
         height: auto;
     }
 
     .pwpo-page-data-item:first-child {
         border-right: 1px solid #ccc;
     }
 
     .pwpo-page-data-item {
         width: calc(50% - 1px);
         border: 0;
         border-bottom: 1px solid #ccc;
     }
 
     .pwpo-page-data-item:last-child {
         width: 100%;
         border-bottom: 0;
     }
 
     .pwpo-page-footer-block svg {
         height: 30px;
     }
 }
 
 @media (max-width: 480px) {
     .pwpo-page-review {
         display: none;
     }
     .pwpo-page-data-item {
         width: 100%;
     }
     .pwpo-page-data-item:first-child {
         border-right: 0;
     }
     .pwpo-page-data-item:last-child {
         border-bottom: 0;
     }
 
     .pwpo-field-wrapper {
         flex-direction: column;
         align-items: flex-start;
         gap: 10px;
     }
     .pwpo-field-wrapper label {
         width: 100%;
     }
     .pwpo-field-wrapper input,
     .pwpo-field-wrapper select {
         width: 100%;
     }
     .pwpo-buttons-wrapper {
         flex-direction: column;
         gap: 10px;
         padding: 20px;
     }
     .pwpo-buttons-wrapper button {
         width: 100%;
         margin: 0;
     }
     #pwpo-sync-now-button {
        margin: auto;
        margin-top: 10px;
     }
     #pwpo-update-offloading-button {
        width: calc(100% - 40px);
        margin: 20px;
     }
 }

 .pwpo-files-checkbox-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
 }

 .pwpo-border-bottom {
    border-bottom: 1px solid #eeeeee7d;
 }

  .pwpo-checkbox-wrapper .tgl {
    display: none;
  }
  .pwpo-checkbox-wrapper .tgl,
  .pwpo-checkbox-wrapper .tgl:after,
  .pwpo-checkbox-wrapper .tgl:before,
  .pwpo-checkbox-wrapper .tgl *,
  .pwpo-checkbox-wrapper .tgl *:after,
  .pwpo-checkbox-wrapper .tgl *:before,
  .pwpo-checkbox-wrapper .tgl + .tgl-btn {
    box-sizing: border-box;
  }
  .pwpo-checkbox-wrapper .tgl::-moz-selection,
  .pwpo-checkbox-wrapper .tgl:after::-moz-selection,
  .pwpo-checkbox-wrapper .tgl:before::-moz-selection,
  .pwpo-checkbox-wrapper .tgl *::-moz-selection,
  .pwpo-checkbox-wrapper .tgl *:after::-moz-selection,
  .pwpo-checkbox-wrapper .tgl *:before::-moz-selection,
  .pwpo-checkbox-wrapper .tgl + .tgl-btn::-moz-selection,
  .pwpo-checkbox-wrapper .tgl::selection,
  .pwpo-checkbox-wrapper .tgl:after::selection,
  .pwpo-checkbox-wrapper .tgl:before::selection,
  .pwpo-checkbox-wrapper .tgl *::selection,
  .pwpo-checkbox-wrapper .tgl *:after::selection,
  .pwpo-checkbox-wrapper .tgl *:before::selection,
  .pwpo-checkbox-wrapper .tgl + .tgl-btn::selection {
    background: none;
  }
  .pwpo-checkbox-wrapper .tgl + .tgl-btn {
    outline: 0;
    display: block;
    width: 3em;
    height: 1.5em;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  .pwpo-checkbox-wrapper .tgl + .tgl-btn:after,
  .pwpo-checkbox-wrapper .tgl + .tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
  }
  .pwpo-checkbox-wrapper .tgl + .tgl-btn:after {
    left: 0;
  }
  .pwpo-checkbox-wrapper .tgl + .tgl-btn:before {
    display: none;
  }
  .pwpo-checkbox-wrapper .tgl:checked + .tgl-btn:after {
    left: 50%;
  }

  .pwpo-checkbox-wrapper .tgl-light + .tgl-btn {
    background: #f0f0f0;
    border-radius: 2em;
    padding: 2px;
    transition: all 0.4s ease;
  }
  .pwpo-checkbox-wrapper .tgl-light + .tgl-btn:after {
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
  }
  .pwpo-checkbox-wrapper .tgl-light:checked + .tgl-btn {
    background: #4099de;
  }

  .pwpo-field-wrapper #pwpo-default-offloading-folder + .ss-main {
    font-family: inherit;
    font-size: 14px;
    min-height: 30px;
    border-color: #ccc;
    color: #2c3338;
  }

  .pwpo-field-wrapper #pwpo-default-offloading-folder + .ss-main:focus {
    border-color: #2271b1;
    color: #0a4b78;
    box-shadow: 0 0 0 1px #2271b1;
  }

  .pwpo-field-wrapper #pwpo-default-offloading-folder + .ss-main:hover {
    color: #2271b1;
  }

  .pwpo-field-wrapper #pwpo-default-offloading-folder + .ss-main .ss-arrow {
    width: 11px;
    height: 11px;
    margin-right: 2px;
  }

  .pwpo-ss-option:hover:not(.ss-disabled) {
    border-left: 0 !important;
  }

  .pwpo-ss-list {
    scrollbar-width: thin;
  }

  .pwpo-ss-content {
    border-radius: 0 0 5px 5px !important;
  }
