/*
 * network.css - network tools page styles
 * The cURL builder, the HTTP request tester, the IP lookup and friends
 */

/* tabs */
.encrypt-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    background: var(--surface-muted);
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-item:hover {
    color: var(--text-color);
    background: #eef2f7;
}

.tab-item.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.encrypt-content {
    display: none;
}

.encrypt-content.active {
    display: block;
}

/* network tool cards */
.network-tool-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.network-tool-card h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    color: var(--text-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.network-tool-card h3 i {
    color: var(--primary-color);
}

/* cURL builder */
.header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.header-controls {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}

.header-label {
    font-weight: 500;
    color: var(--text-color);
    min-width: 80px;
}

.input-area {
    flex: 1;
    width: 100%;
}

.input-area textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    line-height: 1.6;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.input-area textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* request line */
.request-line {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.request-line select,
.request-line input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.request-line select {
    width: auto;
    min-width: 100px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

.request-line input {
    flex: 1;
    min-width: 200px;
}

.request-line select:focus,
.request-line input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* user agent picker */
.user-agent-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.user-agent-selector select {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
    transition: all 0.3s ease;
}

.user-agent-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.user-agent-selector button {
    padding: 0.65rem 1.15rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.user-agent-selector button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* proxy settings */
.proxy-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.proxy-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.proxy-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proxy-type input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.proxy-type label {
    cursor: pointer;
}

.proxy-url {
    flex: 1;
    min-width: 200px;
}

.proxy-url input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.proxy-url input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* input groups (stacked, overriding the horizontal layout from common.css) */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.input-group-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.input-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* cURL builder layout tweaks */
.input-group label+.request-line,
.input-group label+.header-top,
.input-group label+select,
.input-group label+.proxy-settings {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.input-group label+select {
    width: auto;
}

/* keep .header-top on a single row */
.header-controls .header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.header-controls .header-top select {
    flex: 1;
}

.header-controls .header-top button {
    flex-shrink: 0;
}

/* keep .proxy-settings on a single row */
.proxy-settings {
    flex-direction: row !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.proxy-settings select {
    width: auto !important;
}

/* give every label the same width */
.input-group > label {
    min-width: 80px;
    display: inline-block;
    vertical-align: middle;
}

/* basic form styles */
.input-group select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
    transition: all 0.3s ease;
}

.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.input-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    line-height: 1.6;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.input-group input[type="text"],
.input-group input[type="file"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input[type="text"]:focus,
.input-group input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* responsive tweaks */
@media (max-width: 768px) {
    .input-group label+.request-line,
    .input-group label+.header-top,
    .input-group label+select,
    .input-group label+.proxy-settings,
    .header-controls .header-top,
    .proxy-settings {
        flex-direction: column !important;
        align-items: stretch;
        width: 100%;
    }
    
    .input-group > label {
        min-width: auto;
        margin-bottom: 0.5rem;
    }
    
    .header-top,
    .request-line,
    .user-agent-selector,
    .proxy-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-label {
        margin-bottom: 0.5rem;
    }
    
    .network-button-group {
        flex-direction: column;
    }
    
    .network-button-group button {
        width: 100%;
    }
    
    .result-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* buttons */
.network-button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.network-button-group button {
    padding: 0.65rem 1.15rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.network-button-group button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.network-button-group button:active {
    transform: scale(0.98);
}

.network-button-group button.btn-secondary {
    background-color: var(--secondary-color);
}

.network-button-group button.btn-secondary:hover {
    background-color: var(--secondary-hover);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.network-button-group button.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.network-button-group button.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-soft);
    box-shadow: none;
}

/* results */
.network-result {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.result-header {
    background-color: var(--surface-muted);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-title {
    font-weight: 600;
    color: var(--text-color);
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.result-actions button {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.4rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-actions button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

.result-content {
    padding: 1rem;
    font-family: var(--font-mono);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
}

/* IP lookup result */
.ip-result {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ip-result pre {
    background-color: var(--surface-muted);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    line-height: 1.3;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.ip-result .result-item {
    background-color: var(--surface-muted);
    padding: 0.35rem 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.2rem;
}

.ip-result .result-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.5rem;
    min-width: 70px;
    font-size: 0.9rem;
}

.ip-result .result-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex: 1;
    color: #333;
    line-height: 1.4;
    word-break: break-all;
    white-space: normal;
    padding-top: 0.05rem;
}

/* IP lookup and port / command search */
.ip-input-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.ip-input-wrapper input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ip-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.input-tips {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* buttons (the base styles come from common.css, only this page differences here) */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-soft);
}

/* port and command search area */
#port-list-content .ip-input-wrapper,
#linux-commands-content .ip-input-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#port-list-content .ip-input-wrapper input,
#linux-commands-content .ip-input-wrapper input {
    flex: 1;
    min-width: 250px;
}

#linux-commands-content .ip-input-wrapper select {
    width: auto;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s ease;
}

#linux-commands-content .ip-input-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* placeholder message */
.placeholder-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--surface-muted);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--light-text);
    gap: 0.5rem;
}

.placeholder-message i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* loading animation */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--surface-muted);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--light-text);
    gap: 0.5rem;
}

.loading i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* error message */
.error-message {
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #b91c1c;
    padding: 0.9rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    font-size: 0.92rem;
}

/* port list and command list */
.port-list, .command-list {
    overflow-x: auto;
    margin-top: 1rem;
}

.port-list::-webkit-scrollbar,
.command-list::-webkit-scrollbar {
    height: 8px;
}

.port-list::-webkit-scrollbar-thumb,
.command-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.port-list::-webkit-scrollbar-track,
.command-list::-webkit-scrollbar-track {
    background-color: var(--surface-muted);
    border-radius: 4px;
}

.port-table, .linux-cmd-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.92rem;
}

.port-table th, .linux-cmd-table th {
    background-color: var(--surface-muted);
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--light-text);
    border-bottom: 1px solid var(--border-color);
}

.port-table td, .linux-cmd-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef2f7;
}

.port-table tr:last-child td, 
.linux-cmd-table tr:last-child td {
    border-bottom: none;
}

.port-table tr:hover,
.linux-cmd-table tr:hover {
    background-color: var(--surface-muted);
}

.port-table td:first-child,
.linux-cmd-table td:first-child {
    font-weight: 500;
}

.port-table .port-number {
    width: 100px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.port-table .port-service {
    width: 150px;
    font-weight: 600;
}

.linux-cmd-table .cmd {
    width: 200px;
    font-family: var(--font-mono);
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.03);
    border-right: 1px solid var(--border-color);
}

/* give the command column a usable width and style */
.linux-cmd-table td.cmd code {
    display: inline-block;
    padding: 2px 0;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #333;
}

/* responsive table tweaks */
@media (max-width: 768px) {
    .port-table, .linux-cmd-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .port-table th, .port-table td,
    .linux-cmd-table th, .linux-cmd-table td {
        padding: 0.8rem 1rem;
    }
}

/* horizontal input groups */
.row-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
}

.row-flex > label {
    min-width: 80px;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.control-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* keep the layout of the request body and the file path */
#bodyInputGroup,
#fileInputGroup {
    flex-direction: column;
    align-items: flex-start;
}

/* responsive tweaks */
@media (max-width: 768px) {
    .row-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }
    
    .row-flex > label {
        margin-bottom: 0.5rem !important;
        width: 100%;
    }
    
    .control-container {
        width: 100%;
    }
}

/* code examples */
.code-examples {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.code-examples-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border-color);
}

.code-examples-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.code-examples-title i {
    color: var(--primary-color);
}

.code-lang-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface);
}

.code-lang-tab {
    padding: 0.4rem 0.95rem;
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light-text);
    transition: all 0.2s ease;
}

.code-lang-tab:hover {
    color: var(--text-color);
    border-color: #cbd5e1;
}

.code-lang-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

#codeExampleResult {
    margin: 0;
    padding: 0;
    background: #0f172a;
    min-height: 120px;
    max-height: 480px;
    overflow: auto;
}

/* code examples are wrapped in <code>; overrides the inline code default from common.css */
#codeExampleResult code {
    display: block;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: pre;
}

@media (max-width: 768px) {
    .code-examples-header {
        flex-direction: column;
        align-items: stretch;
    }
}

/* FAQ section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    background: var(--surface);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.72rem;
    color: var(--light-text);
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-item[open] summary {
    color: var(--primary-hover);
}

.faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--light-text);
    font-size: 0.92rem;
    line-height: 1.75;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer code {
    font-size: 0.85em;
}

/* WhoIs lookup result */
.whois-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.whois-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--surface-muted);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.whois-section {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.whois-section h4 {
    margin: 0;
    padding: 1rem;
    background-color: var(--surface-muted);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-color);
}

.whois-table {
    width: 100%;
    border-collapse: collapse;
}

.whois-table tr {
    border-bottom: 1px solid var(--border-color);
}

.whois-table tr:last-child {
    border-bottom: none;
}

.whois-table td {
    padding: 0.8rem 1rem;
}

.whois-table td:first-child {
    width: 30%;
    font-weight: 500;
    color: #555;
    background-color: rgba(0, 0, 0, 0.02);
    border-right: 1px solid var(--border-color);
}

.whois-raw {
    margin-top: 1.5rem;
}

.whois-raw pre {
    padding: 1rem;
    background-color: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-top: 0.5rem;
    display: none;
}

.btn-toggle-raw {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-toggle-raw:hover {
    background-color: var(--surface-muted);
}

/* WhoIs responsive tweaks */
@media (max-width: 768px) {
    .whois-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .whois-table td:first-child {
        width: 40%;
    }
} 