/**
 * Acoustic Connect Admin Styles
 */

/* Connection Test */
#acoustic-connection-test {
    margin: 20px 0;
    padding: 12px 15px;
    background: #fff;
    border-left: 4px solid #00a0d2;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

#acoustic-connection-test p {
    margin: 0;
    font-size: 13px;
}

/* Test Button */
#test-collector-connection {
    margin-top: 10px;
}

#test-collector-connection:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Validation Messages */
.validation-message {
    font-size: 12px;
    margin: 5px 0 0 0;
    padding: 5px 10px;
    background: #fff0f0;
    border-left: 3px solid #dc3232;
}

/* Settings Sections */
.woocommerce table.form-table {
    margin-top: 0;
}

.woocommerce table.form-table th {
    width: 200px;
    padding: 15px 10px;
}

.woocommerce table.form-table td {
    padding: 15px 10px;
}

/* Input Fields */
#acoustic_connect_app_key,
#acoustic_connect_collector_url {
    min-width: 400px;
    font-family: 'Courier New', monospace;
}

/* Character Counter */
#app-key-length {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Settings Description */
.acoustic-connect-description {
    background: #f9f9f9;
    border-left: 4px solid #00a0d2;
    padding: 12px;
    margin: 20px 0;
}

.acoustic-connect-description p {
    margin: 0.5em 0;
}

/* Debug Mode Warning */
#acoustic_connect_debug_mode:checked ~ .description {
    color: #dc3232;
    font-weight: 600;
}

/* Conditional Display */
tr.hidden-row {
    display: none;
}

/* Mobile Responsive */
@media screen and (max-width: 782px) {
    #acoustic_connect_app_key,
    #acoustic_connect_collector_url {
        min-width: 100%;
        width: 100%;
    }
    
    .woocommerce table.form-table th {
        width: auto;
    }
}

/* Success/Error States */
.acoustic-status-success {
    color: #46b450;
}

.acoustic-status-error {
    color: #dc3232;
}

.acoustic-status-warning {
    color: #ffb900;
}

/* Settings Header */
h2 .woocommerce-help-tip {
    font-size: 14px;
    margin-left: 5px;
}

/* Subsection Headers */
.subsubsub {
    margin-bottom: 15px;
}

.subsubsub li {
    margin: 0;
    padding: 0;
}

.subsubsub a {
    text-decoration: none;
}

.subsubsub a.current {
    font-weight: 600;
    color: #000;
}

/* Loading Spinner */
.acoustic-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #00a0d2;
    border-radius: 50%;
    animation: acoustic-spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes acoustic-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Event Configuration Table */
.acoustic-event-config {
    margin-top: 10px;
}

.acoustic-event-config th {
    text-align: left;
    padding: 8px;
    background: #f9f9f9;
}

.acoustic-event-config td {
    padding: 8px;
}

/* Plugin Action Links */
.plugins tr[data-plugin*="acoustic-connect"] .deactivate {
    color: #dc3232;
}
