/**
 * Admin Settings CSS
 * 
 * Styles for the OWH Domain WHOIS RDAP admin settings page
 *
 * @since      1.0.0
 * @package    Owh_Domain_Whois_Rdap
 * @subpackage Owh_Domain_Whois_Rdap/admin/css
 */

/* Form table styles */
.form-table th {
    width: 200px;
}

/* Save section styles */
.owh-rdap-save-section {
    margin-top: 20px;
}

/* RDAP info section styles */
.owh-rdap-info {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.owh-rdap-info h3 {
    margin-top: 0;
    color: #0073aa;
}

.owh-rdap-info code {
    font-size: 14px;
}

/* Shortcode styles */
.owh-shortcode {
    padding: 5px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 14px;
}

.shortcode-description {
    margin-top: 15px;
}

.section-title {
    margin-top: 25px;
}

.gutenberg-blocks-list {
    margin: 10px 0 0 20px;
}

.template-variables {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
}

.template-variables ul {
    margin: 0;
}

.template-variables h4 {
    margin-top: 0;
}

/* Description with margin */
.description {
    margin-bottom: 15px;
}

/* Tab Styles */
.owh-tab-wrapper {
    margin-bottom: 0;
    border-bottom: 1px solid #ccc;
}

.owh-tab-panel {
    display: none;
}

.owh-tab-panel.active {
    display: block;
}

/* Custom TLDs Container */
.custom-tlds-container {
    width: 100%;
    overflow-x: auto;
}

.custom-tlds-header {
    display: flex;
    margin-bottom: 10px;
    font-weight: bold;
    min-width: 600px;
}

.custom-tlds-header > div {
    padding: 5px;
}

.custom-tlds-header > div:nth-child(1) {
    width: 200px;
}

.custom-tlds-header > div:nth-child(2) {
    width: 300px;
}

.custom-tlds-header > div:nth-child(3) {
    width: 100px;
}

/* Custom TLD Rows */
.custom-tld-row {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    min-width: 600px;
}

.custom-tld-row > div {
    padding: 5px;
}

.custom-tld-row > div:nth-child(1) {
    width: 200px;
}

.custom-tld-row > div:nth-child(2) {
    width: 300px;
}

.custom-tld-row > div:nth-child(3) {
    width: 100px;
}

.custom-tld-row input[type="text"] {
    width: 100%;
    max-width: 100%;
}

.add-tld-button {
    margin-top: 10px;
    min-width: 120px;
    cursor: pointer;
}

/* Update Status */
.update-rdap-status {
    margin-top: 10px;
    display: none;
}

.save-custom-tlds-status {
    margin-top: 10px;
    display: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .custom-tlds-header,
    .custom-tld-row {
        flex-direction: column;
        min-width: auto;
    }
    
    .custom-tlds-header > div,
    .custom-tld-row > div {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .custom-tlds-header > div:last-child,
    .custom-tld-row > div:last-child {
        margin-bottom: 0;
    }
    
    .custom-tlds-container {
        overflow-x: visible;
    }
}

@media screen and (max-width: 480px) {
    .form-table th {
        width: auto;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .add-tld-button {
        width: 100%;
    }
}

.owh-tab {
    position: relative;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 0;
    margin-bottom: -1px;
    padding: 10px 15px;
    color: #0073aa;
    transition: all 0.3s ease;
}

.owh-tab:hover {
    color: #005a87;
    background-color: #f9f9f9;
}

.owh-tab.nav-tab-active {
    background-color: #fff;
    border-color: #ccc;
    border-bottom-color: #fff;
    color: #000;
}

.owh-tab-content {
    background: #fff;
    border: 1px solid #ccc;
    border-top: 0;
    padding: 20px;
    min-height: 300px;
}

.owh-tab-panel {
    display: none;
}

.owh-tab-panel.active {
    display: block;
}

.owh-tab-panel h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Custom TLDs styles */
.custom-tlds-header {
    display: flex;
    margin-bottom: 10px;
    font-weight: bold;
}

.custom-tld-row {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
}

.custom-tld-row > div {
    padding: 5px;
}

.custom-tld-row input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid rgb(140, 143, 148);
    border-radius: 4px;
    box-sizing: border-box;
}

#update-rdap-servers{
    width: fit-content;
}

.custom-tld-row input[type="text"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

#add-tld-row {
    margin-top: 10px;
    min-width: 120px;
    cursor: pointer;
}

/* Notice styles for inline messages */
.notice.inline {
    margin: 5px 0 0 0;
    padding: 8px 12px;
}

.notice.inline p {
    margin: 0;
}

/* RDAP status info styles */
#rdap-status-info {
    margin-bottom: 15px;
}

#rdap-status-info p {
    margin-bottom: 5px;
}
