*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wrap.cpttm-admin-container{
    margin: 0;
    padding: 0;
}

.cpttm-admin-topbar {
    background: #fff;
    margin: 0;
    padding: 20px;
}

.cpttm-admin-topbar .nav-topbar {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 20px;
}

.cpttm-admin-topbar .nav-topbar-item {
    margin: 0;
}

.cpttm-admin-topbar .nav-topbar-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #000 !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cpttm-admin-topbar .nav-topbar-link:focus,
.cpttm-admin-topbar .nav-topbar-link:active {
    outline: none;
    border: none;
    border-color: transparent;
}

.cpttm-admin-topbar .nav-topbar-link:hover {
    border-color: #000;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cpttm-admin-topbar .nav-topbar-link-active {
    background: #f3f3f3;
    border-radius: 12px;
    font-weight: 600;
}


.cpttm-admin-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2ca148;
}

.cpttm-admin-form textarea {
    width: 100%;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    padding: 8px;
    min-height: 100px;
}

.cpttm-admin-form .button-primary {
    background: #000000;
    border-color: #000000;
    color: #fff;
    text-shadow: none;
    padding: 10px 20px;
    height: auto;
}

.cpttm-admin-form .button-primary:hover {
    background: linear-gradient(to right, #000000, #383847);
    border-color: #000000;
}

#wpcontent{
    padding-left: 0;
}

.cpttm-scripts-form,
.cpttm-events-form,
.cpttm-page-metadata-form{
    margin: 20px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-radius: 16px;  
}

.cpttm-events-form{
    width: 100%;
    max-width: 700px;
    padding: 0;
}

.cpttm-page-metadata-form{
    width: 100%;
    max-width: 500px;
    padding: 0;
}

.cpttm-events-form-row {
    display: flex;
    flex-direction: column;
}

.cpttm-events-form-row .cpttm-events-form-checkboxes{
    padding: 20px;
}

.cpttm-events-form .submit {
    padding: 20px;
}

.cpttm-events-form-row .cpttm-events-form-title,
.cpttm-page-metadata-form .cpttm-page-metadata-form-title{
    background: linear-gradient(to right, #000000, #383847);
    width: 100%;
    color: #ffffff;
    text-align: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.cpttm-page-metadata-form table tr{
    display: flex;
    padding-left: 10px;
    background-color: #f8f9f9;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 20px;
}


.cpttm-page-metadata-form table tr th{
    font-weight: 400;
}

.cpttm-page-metadata-form table tr:first-child{
    padding: 0;
    margin: 0;
}

.cpttm-page-metadata-form .button-primary{
    margin-left: 20px;
}

.cpttm-page-metadata-form table tr:hover {
    background-color: #f0f0f1;
    transform: translateX(5px);
}

.cpttm-page-metadata-form table tr:first-child:hover {
    transform: translateX(0);
}

/* Toggle Switch Styling */
.cpttm-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cpttm-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cpttm-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cpttm-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cpttm-toggle-slider {
    background-color: #2ca148;
}

input:checked + .cpttm-toggle-slider:before {
    transform: translateX(24px);
}

input:focus + .cpttm-toggle-slider {
    box-shadow: 0 0 1px #2ca148;
}

.cpttm-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.cpttm-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cpttm-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.cpttm-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .cpttm-toggle-slider {
    background-color: #2ca148;
}
input:checked + .cpttm-toggle-slider:before {
    transform: translateX(24px);
}
input:focus + .cpttm-toggle-slider {
    box-shadow: 0 0 1px #2ca148;
}

/* WooCommerce Events Checkboxes */
.cpttm-events-form-checkboxes .cpttm-toggle-switch {
    margin-right: 15px;
}

/* Event Toggle Specific Styles */
.cpttm-event-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f8f9f9;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cpttm-event-toggle:hover {
    background-color: #f0f0f1;
    transform: translateX(5px);
}

.cpttm-event-form-label {
    margin-left: 15px;
    font-size: 14px;
    line-height: 1.4;
    color: #1d2327;
}

.cpttm-events-form-fieldset {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cpttm-admin-topbar .cpttm-logo{
    width: 160px;
    height: auto;
}

.cpttm-admin-topbar .nav-topbar-logo {
    display: flex;
    gap: 10px;
}

.cpttm-admin-topbar .nav-topbar-logo h2{
    color: #000;
    font-size: 20px;
    font-weight: 600;
}


.cpttm-logo {
    background-image: url('../images/cpttm-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* CodeMirror container */
.CodeMirror {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: auto;
    min-height: 200px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* Active line highlight */
.CodeMirror-activeline-background {
    background: #f5f5f5;
}

/* Gutter line numbers */
.CodeMirror-linenumber {
    padding: 0 8px;
    color: #999;
}

/* Scrollbar styling */
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar {
    -webkit-overflow-scrolling: touch;
}