.tab-content {
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    margin-top: -1px;
}

.nav-tab-wrapper {
    margin-bottom: 10px;
}

.persian-tools-about-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    margin-top: 30px;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
}

.persian-tools-about-box h3 {
    background: #f0f0f1;
    margin: 0;
    padding: 15px;
    border-bottom: 1px solid #ccd0d4;
    font-size: 16px;
}

.persian-tools-about-box .inside {
    padding: 20px;
}

.persian-tools-about-box ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.persian-tools-about-box ul li {
    margin-bottom: 8px;
}

.persian-tools-code-group {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.persian-tools-code-group:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #c5c5c5;
}

.persian-tools-code-header {
    color: #1e73be;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.persian-tools-code-header i {
    font-size: 1.2em;
}

.persian-tools-code-textarea {
    width: 100%;
    font-family: "Fira Code", "Courier New", monospace!important;
    font-size: 12px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: #f8f8f2;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
    min-height: 200px;
    resize: vertical;
    direction: ltr;
    text-align: left;
}

.persian-tools-code-textarea:focus {
    border-color: #1e73be;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.2);
}

.persian-tools-code-textarea::placeholder {
    color: #a0a0a0;
    font-style: italic;
}

.persian-tools-location-selector {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.persian-tools-location-selector label {
    font-weight: 600;
    margin-left: 10px;
}

.persian-tools-location-selector select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
}

.persian-tools-code-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #1e73be, transparent);
    margin: 30px 0;
    position: relative;
}

.persian-tools-code-separator::before {
    content: "JavaScript";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 15px;
    color: #1e73be;
    font-weight: bold;
    font-size: 1.2em;
}

@media (max-width: 782px) {
    .persian-tools-code-group {
        padding: 15px;
    }
    
    .persian-tools-code-textarea {
        font-size: 13px;
        padding: 10px;
    }
}

#persian_tools_checkout_custom_message {
    transition: all 0.3s ease;
}

#persian_tools_checkout_custom_message:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.template-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#live_preview {
    transition: all 0.3s ease;
}

.preview-updating {
    opacity: 0.7;
    background: #f8f9fa !important;
}

.button-texts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.button-text-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.button-text-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.button-text-item h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-box {
    margin-top: 10px;
    padding: 8px;
    background: #f0f8ff;
    border-radius: 3px;
    font-size: 13px;
    border-right: 3px solid #007cba;
}

.button-id-box {
    margin-top: 8px;
    padding: 8px;
    background: #fff3cd;
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
}