/**
 * NoTrack - WordPress User Tracking Opt-Out Plugin
 * 
 * Styles for the frontend opt-out form and buttons.
 */

/* Main container */
.notrack-opt-out-form {
    margin: 2em 0;
    padding: 1.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    max-width: 600px;
}

/* Form title */
.notrack-opt-out-form h3 {
    margin-top: 0;
    margin-bottom: 1em;
    color: #333;
    font-size: 1.4em;
}

/* Status message */
.notrack-status {
    margin-bottom: 1.5em;
    padding: 0.5em;
    background-color: #f0f0f0;
    border-left: 4px solid #ccc;
}

.notrack-status.opted-out {
    background-color: #e7f7e7;
    border-left-color: #46b450;
}

/* Opt-out button */
.notrack-opt-out-button {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.notrack-opt-out-button:hover,
.notrack-opt-out-button:focus {
    background-color: #005f8b;
    color: #fff;
}

/* Form elements */
.notrack-opt-out-form form {
    margin-top: 1.5em;
}

.notrack-tracker-field {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
}

.notrack-tracker-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.notrack-tracker-field label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.notrack-tracker-parameters {
    margin-top: 1em;
    margin-left: 1.5em;
}

.notrack-parameter-field {
    margin-bottom: 0.8em;
}

.notrack-parameter-label {
    display: inline-block;
    min-width: 120px;
    margin-right: 1em;
}

/* Description text */
.notrack-opt-out-form p.description {
    font-style: italic;
    color: #666;
    margin: 0.5em 0 0 0;
    font-size: 0.9em;
}

/* New styles for opt-out form */
.notrack-opt-out-all {
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: #f0f0f0;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.notrack-opt-out-all label {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.notrack-opt-out-all input[type="checkbox"] {
    margin-right: 0.5em;
}

.notrack-services {
    margin-bottom: 1.5em;
}

.notrack-service {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

.notrack-service:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.notrack-service label {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.notrack-service input[type="checkbox"] {
    margin-right: 0.5em;
}

.notrack-submit {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

.notrack-submit button {
    padding: 0.5em 1em;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.notrack-submit button:hover,
.notrack-submit button:focus {
    background-color: #005f8b;
}

/* NoTrack Public Styles */

/* Cookie Banner */
.notrack-cookie-banner {
    position: fixed;
    z-index: 99999;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: none;
}

.notrack-cookie-banner.notrack-show {
    display: block;
}

.notrack-cookie-banner-title {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
}

.notrack-cookie-banner-description {
    margin-bottom: 15px;
}

.notrack-cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notrack-cookie-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.notrack-cookie-button-primary {
    background-color: #0073aa;
    color: #fff;
}

.notrack-cookie-button-secondary {
    background-color: #f1f1f1;
    color: #333;
}

.notrack-cookie-button-text {
    background: none;
    color: #0073aa;
    text-decoration: underline;
}

/* Opt-out Button */
.notrack-opt-out-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.notrack-opt-out-button:hover,
.notrack-opt-out-button:focus {
    background-color: #005f8b;
    color: #fff;
    text-decoration: none;
}

.notrack-status {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.notrack-status.opted-out {
    color: #008000;
}

/* Opt-out Form */
.notrack-opt-out-form {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.notrack-opt-out-form h3 {
    margin-top: 0;
    font-size: 20px;
}

.notrack-opt-out-description {
    margin-bottom: 20px;
    color: #666;
}

.notrack-opt-out-service {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.notrack-opt-out-service:last-child {
    border-bottom: none;
}

.notrack-opt-out-all {
    background-color: #f1f1f1;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.notrack-opt-out-services-list {
    margin-bottom: 20px;
}

.notrack-opt-out-service label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
}

.notrack-opt-out-service .description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    margin-left: 25px;
}

.notrack-opt-out-actions {
    margin-top: 20px;
}

.notrack-opt-out-status {
    margin-top: 15px;
}

/* Cookie Preferences */
.notrack-cookie-preferences {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.notrack-cookie-preferences h3 {
    margin-top: 0;
    font-size: 20px;
}

.notrack-cookie-category {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.notrack-cookie-category:last-child {
    border-bottom: none;
}

.notrack-cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notrack-cookie-category-title {
    margin: 0;
    font-size: 16px;
}

.notrack-cookie-required {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

.notrack-cookie-category-description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.notrack-cookie-category-toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.notrack-cookie-category-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.notrack-cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.notrack-cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .notrack-cookie-toggle-slider {
    background-color: #0073aa;
}

input:disabled + .notrack-cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked + .notrack-cookie-toggle-slider:before {
    transform: translateX(18px);
}

.notrack-cookie-preferences-actions {
    margin-top: 20px;
}

.notrack-cookie-preferences-status {
    margin-top: 15px;
}

/* Utilities */
.notrack-notice {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.notrack-notice-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notrack-notice-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notrack-notice-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Status indicators */
.notrack-status-blocked {
    background-color: #f8d7da;
    color: #721c24;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.notrack-status-allowed {
    background-color: #d4edda;
    color: #155724;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.notrack-status-unknown {
    background-color: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
} 