/**
 * Taknema Admin Styles
 * Version: 1.0.0
 */

.taknema-settings-wrap {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.taknema-settings-wrap h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1d2327;
}

.taknema-settings-wrap .description {
    font-size: 14px;
    color: #646970;
    margin-bottom: 20px;
}

.taknema-settings-container {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.taknema-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.taknema-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #a7aaad;
}

.taknema-card h2 {
    font-size: 20px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
    color: #1d2327;
}

.taknema-card h3 {
    font-size: 16px;
    margin: 15px 0 10px 0;
    color: #1d2327;
}

.taknema-card .description {
    margin-bottom: 15px;
}

.taknema-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.taknema-checkbox-grid label {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.taknema-checkbox-grid label:hover {
    background: #e5e9f2;
    border-color: #2271b1;
}

.taknema-checkbox-grid input[type="checkbox"] {
    margin: 0 8px 0 0;
    cursor: pointer;
}

.taknema-accordion {
    margin-bottom: 15px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

.taknema-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f6f7f7;
    cursor: pointer;
    transition: background 0.2s ease;
}

.taknema-accordion-header:hover {
    background: #e5e9f2;
}

.taknema-accordion-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.taknema-accordion-toggle {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.taknema-accordion.active .taknema-accordion-toggle {
    transform: rotate(180deg);
}

.taknema-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
}

.taknema-accordion.active .taknema-accordion-content {
    max-height: 1000px;
    padding: 15px;
}

.taknema-system-info table {
    width: 100%;
    border-collapse: collapse;
}

.taknema-system-info table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.taknema-system-info table tr:last-child td {
    border-bottom: none;
}

.taknema-system-info table td:first-child {
    width: 40%;
    font-weight: 500;
}

.taknema-footer {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px 20px;
    text-align: center;
    margin-top: 20px;
}

.taknema-footer p {
    margin: 0;
    color: #646970;
}

.taknema-footer a {
    color: #2271b1;
    text-decoration: none;
    margin: 0 10px;
}

.taknema-footer a:hover {
    color: #135e96;
    text-decoration: underline;
}

.button-hero {
    font-size: 16px !important;
    padding: 10px 25px !important;
    height: auto !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .taknema-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .taknema-settings-wrap h1 {
        font-size: 24px;
    }
}

/* Notice Styles */
.notice.is-dismissible {
    border-left-width: 4px;
    border-radius: 4px;
}

/* Form Table Improvements */
.taknema-card .form-table th {
    width: 30%;
    padding: 15px 10px 15px 0;
}

.taknema-card .form-table td {
    padding: 15px 10px;
}

.taknema-card .form-table label {
    display: block;
    margin-bottom: 8px;
}

.taknema-card .form-table label strong {
    font-weight: 600;
}

/* Input Styles */
input[type="text"].regular-text {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

input[type="text"].regular-text:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Radio Button Styles */
input[type="radio"] {
    margin-right: 8px;
}

/* Privacy Card Styles */
.taknema-privacy-card {
    border-left: 4px solid #9c27b0 !important;
}

.taknema-privacy-card h2 {
    color: #9c27b0;
}

.taknema-privacy-card label {
    cursor: pointer;
}

.taknema-privacy-card input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.taknema-privacy-card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.taknema-privacy-card ul li {
    margin-bottom: 5px;
}
