/* admin/css/snippets-admin.css */

.CodeMirror {
    min-height: 150px;
    border: 1px solid #999;
    border-radius: 5px;
    height: auto !important;
}

#form-container .CodeMirror {
            min-height: 500px;
        }

#description_textarea {
    box-sizing: border-box;
    overflow-y: hidden;
    resize: none;
    min-height: 60px;
}

/*
 * CWP Snippets - Menu Separator
 */
#adminmenu .wp-submenu li a[href$="page=cwp-snippets-addons"] {
    border-top: 1px solid #555555;
    margin-top: 5px;
    padding-top: 5px;
}

/* Style for dark mode */
.theme-dark #adminmenu .wp-submenu li a[href$="page=cwp-snippets-addons"] {
    border-top-color: #555;
}

.cwp-snippets-admin-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
}

.cwp-snippets-admin-content {
    flex-grow: 1;
}

/* Header style */
.fmcwp-admin-header{
    padding: 15px 25px;
    background-color: #fff;
    margin: 10px 10px 10px 0px;
    border: 1px solid #ddd ;
}

/* Footer style */
.fmcwp-admin-footer{
    display: flex;
    padding: 10px 25px 10px 25px;
    background-color: #fff;
    margin: 50px 10px 0px 0px;
    border: 1px solid #ddd ;
}

.fmcwp-admin-footer-wrap{
    display: flex;
    align-items: center;
    gap: 75px;
    margin-top: auto;

}

.fmcwp-admin-footer-block{
    margin-left: 25px; 
    max-width: 35%;
}

.cwp-snippet-tabs {
    border-bottom: 1px solid #ccc;
    margin: 20px 0;
    padding-left: 10px;
}

.cwp-snippet-tab {
    display: inline-block;
    padding: 8px 15px;
    margin-bottom: -1px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-bottom: none; 
    color: #555;
    background-color: #f7f7f7; 
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.cwp-snippet-tab:hover {
    background-color: #eee;
    color: #000;
}

.cwp-snippet-tab-active {
    background-color: #fff; 
    border-color: #ccc; 
    border-bottom-color: #fff;
    color: #000;
    font-weight: bold;
}

.cwp-pro-indicator {
    font-size: 0.8em;
    padding: 1px 4px;
    border: 1px solid #aaa;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.2;
    background-color: #f0f0f0;
    color: #555;
}

/* Style for disabled Pro tabs */
.cwp-disabled-tab {
    color: #999 !important;
    background-color: #f7f7f7 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Ensure hover effect doesn't override disabled look */
.cwp-disabled-tab:hover {
    background-color: #f7f7f7 !important;
    color: #999 !important;
}


/* Style for disabled options in select dropdown */
select option:disabled {
    color: #999;
}

/* Explicit padding for the Import label styled as a button */
label.button[for="snippets_import_file"] {
    padding-top: 2px;
    padding-bottom: 2px;
    vertical-align: top;
}


/* Re-use disabled button style from tabs */
.cwp-disabled-button {
    color: #999 !important;
    background-color: #f7f7f7 !important;
    border-color: #ddd !important;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none !important;
}

.cwp-disabled-button:hover {
    background-color: #f7f7f7 !important;
    color: #999 !important;
}

/* Ensure the Pro indicator within the disabled button looks okay */
.cwp-disabled-button .cwp-pro-indicator {
    border-color: #ccc;
    background-color: #eee;
    color: #777;
}


/* Style for expired license status text */
.cwp-status-expired {
    color: red;
    font-weight: bold; /* Optional: make it bold */
}

.cwp-status-active {
    color: green; /* Optional: if you want active to be green */
}

/* General link focus style */
.cwpfm-link:active,
.cwpfm-link:focus {
    outline: none !important;
    box-shadow: none;
}

.cwp-action-icon-button {
    /* Adjust as needed */
}
.cwp-pro-indicator-small {
    font-size: 0.7em;
    background-color: #ffba00; /* Example Pro color */
    color: #fff;
    padding: 1px 3px;
    border-radius: 2px;
    margin-left: 4px;
    vertical-align: super;
    font-weight: bold;
}
.cwp-disabled-button .fa-copy {
    opacity: 0.5; /* Make icon appear disabled */
}

/* Tab styles (included as they were part of the same style block) */
.cwp-snippet-tabs {
    display: flex;
    border-bottom: 1px solid #ccc; /* Optional: Add a bottom border to visually separate the tabs */
}

.cwp-snippet-tab {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f0f0; /* Light grey background */
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    border-bottom: none; /* Remove the bottom border */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-right: 5px; /* Add spacing between tabs */
}

.cwp-snippet-tab:hover {
    background-color: #e0e0e0; /* Slightly darker on hover */
}

.cwp-snippet-tab-active {
    background-color: #fff; /* White background for the active tab */
    border-bottom: 1px solid #fff; /* Hide the bottom border of the active tab */
    color: #000; /* Dark text for the active tab */
    font-weight: bold;
}

    
/* ********** DEBUG LOG ******/
/* The switch - the box around the slider */
.cwp-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    vertical-align: middle;
}

/* Hide default HTML checkbox */
.cwp-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* The slider */
.cwp-slider {
position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.cwp-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cwp-slider {
  background-color: #2196F3;
}

input:focus + .cwp-slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .cwp-slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* Rounded sliders */
.cwp-slider.round {
  border-radius: 34px;
}

.cwp-slider.round:before {
  border-radius: 50%;
}

.fmcwp-log-export-button {
    float: right;
}

/*
 * CWP Snippets - Add-ons Page Styling
 */
.cwp-addons-page-wrapper {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

.cwp-addons-hero {
    padding: 40px 20px;
    background: #f7f7f7;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #e5e5e5;
}

.cwp-addons-hero h1 {
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.cwp-addons-subtitle {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 0;
}

.cwp-addons-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.cwp-addons-feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9e9e9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cwp-addons-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.cwp-addons-card-icon {
    font-size: 3em;
    color: #007cba; /* WordPress blue */
    margin-bottom: 20px;
}

.cwp-addons-feature-card h2 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.cwp-addons-feature-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
}

.cwp-addons-stay-tuned {
    margin-top: 20px;
    padding: 20px;
    background: #eaf2fa;
    border-left: 4px solid #007cba;
    border-radius: 4px;
    text-align: left;
}

.cwp-addons-stay-tuned h3 {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .cwp-addons-features-grid {
        grid-template-columns: 1fr;
    }

    .cwp-addons-hero h1 {
        font-size: 2em;
    }
}

/* Documentation Page Layout */
.cwp-doc-container {
    display: flex;
    margin-top: 20px;
    border: 1px solid #ddd;
    background-color: #fff;
}

.cwp-doc-sidebar {
    width: 220px;
    border-right: 1px solid #ddd;
    background-color: #f9f9f9;
}

.cwp-doc-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cwp-doc-menu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
}

.cwp-doc-menu li a:hover {
    background-color: #eaf2fa;
}

.cwp-doc-menu li a.current {
    background-color: #007cba;
    color: #fff;
    font-weight: bold;
}

.cwp-doc-content {
    flex-grow: 1;
    padding: 25px;
}
