﻿/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F5F5F5;
}

.split-container {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 60px);
}

.left-split {
    width: clamp(260px, calc(233px + 2rem), 40%);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.left-header {
    padding: 1rem;
    background: #263238;
}

.left-graphic {
    background: url('/NIC2/graphics/GMBA100.png') no-repeat center/cover;
    flex: 1;
}

.left-logo {
    width: 233px;
    height: 83px;
}

.right-content {
    margin-left: clamp(260px, calc(233px + 2rem), 40%);
    width: calc(100% - clamp(260px, calc(233px + 2rem), 40%));
    padding: 2rem;
    background: #EEFFEE url('/NIC2/graphics/BGXT.png') no-repeat center top;
    background-size: auto;
    color: #1A2528;
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

.right-nav {
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 0.48rem 1.5rem;
    text-shadow: 0 3px 4px rgba(0, 0, 0, 0.15); /* Subtle text shadow for depth */
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    text-transform: uppercase;
}

.nav-button:hover {
    color: #FFD800;
}

#login-link.nav-button {
    background: #1976D2;
}

#legal-link.nav-button {
    background: #FF6666;
}

#legal-link.nav-button:hover {
    color: #333333;
}

.cta-button {
    display: inline-block;
    background: #263238;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), /* Subtle outer shadow for 3D effect */
    inset 0 20px 30px rgba(255, 255, 255, 0.15); /* Inner highlight for shine */
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.15); /* Subtle text shadow for depth */
    border-radius: 4px;
    font-size: 14px;
}

.cta-button:hover {
    color: #FFD800;
}

.cta-button2 {
    display: inline-block;
    background: #263238;
    color: #fff;
    padding: 0.58rem 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), /* Subtle outer shadow for 3D effect */
    inset 0 20px 30px rgba(255, 255, 255, 0.15); /* Inner highlight for shine */
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.15); /* Subtle text shadow for depth */
    border-radius: 4px;
    font-size: 14px;
}

.cta-button2:hover {
    color: #00FF00;
}

.text-link {
    font-family: Arial, sans-serif;
    font-size: 1.0rem;
    font-weight: bold;
    color: #1A2528;
    text-decoration: none;
    text-transform: none;
}

.text-link:hover {
    color: #FFD800;
}

.content h2 {
    background: linear-gradient(145deg, #006400, #004d00); /* Deep green gradient for subtle shine */
    color: white; /* White text */
    padding: 9px 14px; /* Comfortable padding for headline */
    border-radius: 7px 7px 0 0; /* Rounded top corners only */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2), /* Subtle outer shadow for 3D effect */
    inset 0 20px 30px rgba(255, 255, 255, 0.15); /* Inner highlight for shine */
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.15); /* Subtle text shadow for depth */
    text-align: center;
    font-size: 1.5rem; /* Standard h2 size, adjustable */
    font-weight: 550; /* Slightly bold for headline prominence */
    max-width: 835px;
    line-height: 1.2; /* Better readability */
    transition: box-shadow 0.2s ease; /* Smooth shadow transition */
    /* text-transform: uppercase; */
}

.content h3 {
    font-size: 1.2rem;
    font-weight: 850;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); /* Subtle text shadow for depth */
    margin: 1rem 0 0.5rem;
    color: #1A2528;
    text-transform: uppercase;
}

.content h5 {
    color: #1A2528;
    text-align: right;
}

.content p {
    margin-top: 0.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #1A2528;
    /* text-align: justify; */
}

.registration-form {
    max-width: 835px;
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row td {
    flex: 1;
    padding: 0.5rem 0;
    text-align: left;
}

.form-row input {
    width: 100%;
    padding: 0.35rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    min-height: 13.5px; /* ~25.7px total height */
}

.registration-form textarea {
    width: 100%;
    padding: 0.35rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    height: 37px;
    resize: vertical;
}

.registration-form input[type="text"],
.registration-form input[type="email"] {
    width: 100%;
    padding: 0.35rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    min-height: 13.5px;
}

.registration-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 13.6px; /* Reduced from 15.6px by 2px */
    color: #1A2528;
    font-weight: normal !important;
    text-align: left;
}

.registration-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block; /* Allows checkboxes on same line */
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 13px; /* Matches form-note */
    color: #0066cc; /* Matches text-link */
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 0.5rem;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px; /* Slightly smaller for tooltip */
    line-height: 1.4;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.form-divider {
    border: 0;
    border-top: 2px solid #5CBF61;
    opacity: 0.3;
    margin: 16px 0px 2px 0px;
    width: 100%;
}

.form-submit {
    margin-top: 1rem;
    text-align: left;
}

.form-submit .cta-button {
    display: inline-block;
    margin-right: 0.2rem;
    margin-bottom: 0.5rem;
}

.form-submit p#form-result {
    font-size: 13px;
    line-height: 1.5;
    color: #1A2528;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    .form-row td {
        width: 100%;
        padding: 0.5rem 9px;
    }
    .registration-form textarea {
        height: 30px;
    }
}

.dashboard-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Reduced from 1rem to 0.5rem for tighter spacing */
    align-items: center;
}

.dashboard-button-group .cta-button {
    margin: 0.3rem 0.3rem 0.3rem 0.3rem;
}

.dashboard-button-group .tooltip {
    margin-right: 0.5rem; /* Reduced from 1rem to 0.5rem for tighter spacing */
}

.portfolio-form {
    max-width: 835px;
    margin-bottom: 1.5rem;
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #EEFFEE;
}

.portfolio-table th {
    font-size: 13px; /* Original size */
    font-weight: 600;
    text-transform: uppercase;
    color: #006400; /* Dark green text, matching h2 background gradient */
    background-color: #A8E4A0; /* Light green background */
    padding-top: 0.5rem; /* Increased top padding */
    padding-bottom: 0.5rem; /* Increased bottom padding */
    text-align: center !important; /* Center all header columns */
    border: 1px solid #DDEEDD;
}

.portfolio-table td {
    padding: 0.75rem;
    border: 1px solid #DDEEDD;
    font-size: 13px; /* Matches form-note and registration.html */
    line-height: 1.5;
}

.portfolio-table th.check-column,
.portfolio-table td.check-column {
    width: 60px !important; /* Increased width for checkbox column */
    min-width: 60px !important; /* Ensure minimum width */
    padding-left: 0; /* Remove left padding for checkbox column */
    text-align: center !important; /* Center checkbox and SELECT header text */
}

.portfolio-table .text-column.registrant,
.portfolio-table .text-column.domain {
    text-align: left; /* Left-align data rows */
    padding-left: 10px; /* Left padding */
}

.portfolio-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    display: block;
    margin: 0 auto;
}

.form-submit {
    margin-top: 1rem;
    text-align: left;
}

.form-submit .cta-button {
    display: inline-block;
    margin-right: 0.2rem;
    margin-bottom: 0.5rem;
}

.form-submit p#form-result {
    font-size: 13px;
    line-height: 1.5;
    color: #1A2528;
}

.registration-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 13.6px; /* Reduced from 15.6px by 2px */
    color: #1A2528;
    font-weight: normal !important;
    text-align: left;
}

.registration-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    vertical-align: middle;
    display: inline-block; /* Allows checkboxes on same line */
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 13px; /* Matches form-note */
    color: #0066cc; /* Matches text-link */
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 0.5rem;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px; /* Slightly smaller for tooltip */
    line-height: 1.4;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 0.13em;
    margin-left: 0.4em;
    vertical-align: 3px;
    background: linear-gradient(145deg, #3ca0e6, #2c82c9);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.2), /* highlight */
        0 2px 4px rgba(0, 0, 0, 0.2); /* shadow */

}

.icon.check2 {
    background: #3c3;
}

.icon.check {
    background: #beb;
}

.icon.warning {
    background: #fc6;
}

.icon.question {
    background: #bbe;
}

.icon.blocked {
    background: #f66;
}

.icon.taken {
    background: #06f;
}

.icon.illegal {
    background: #f66;
}

.category-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.category-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-table {
    width: auto;
    max-width: 835px;
    border-collapse: collapse;
    border-right: 1px solid #DDEEDD;
    border-top: 0px solid #cceecc;
    border-bottom: 2px solid #5CBF61;
    background: #E8FFE8;
}

.info-table td {
    padding: 0.5rem 9px 0.5rem 0;
}

.info-table td:nth-child(2) {
    text-align: right;
    width: auto;
}

.info-table p {
    margin-top: 0.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #1A2528;
}

.categories-line {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #EEFFEE;
    padding: 2rem;
    border-radius: 4px;
    width: 30%;
    max-width: 400px;
    min-width: 280px;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #263238;
}

.close-popup:hover {
    color: #FFD800;
}

.popup-content h3 {
    margin-bottom: 1.5rem;
    color: #1A2528;
    padding-left: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.message-list {
    margin-top: 0.5em;
    padding-left: 1.2em;
}

.message-list li {
    margin-bottom: 0.3em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.login-form label {
    font-size: 0.875rem; /* Reduced from 1.0rem (16px) to 0.875rem (14px) */
    color: #1A2528;
    font-weight: normal !important;
}

.login-form input[type="text"],
.login-form input[type="email"] {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 1px;
    font-size: 1.0rem;
}

.login-form input[type="checkbox"] {
    margin-right: 0.26rem;
    width: 16px;
    height: 16px;
}

.login-form button.cta-button {
    max-width: 150px;
}

.login-form #login-result {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #1A2528;
}

.whois-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 835px;
}

.whois-form input {
    padding: 0.75rem;
    margin: 0 2px 0 0; 
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 65%;
}

.whois-form button.cta-button {
    max-width: 100%;
}

footer {
    background: #263238;
    color: #fff;
    padding: 1rem;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        min-height: auto;
    }

    .left-split, .right-content {
        width: 100%;
        position: static;
        margin-left: 0;
    }

    .left-logo {
        max-width: 233px;
        height: auto;
    }

    .popup-content {
        width: 80%;
        min-width: 250px;
    }

    .login-form button.cta-button,
    .whois-form button.cta-button {
        max-width: 100%;
    }

    .right-content {
        background: #EEFFEE;
    }

    .whois-form input {
        width: 100%;
        margin: 0 0 0.5rem 0;
    }
}

.details-table {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: auto;
    background-color: #EEFFEE;
    padding: 20px;
}

.details-table td {
    text-align: left;
    vertical-align: middle;
    padding: 10px;  /* Add some padding around the content inside the td */
}

.pay-status {
    background-color: #DDFFDD;
}

/* Style for disabled Delete button to appear shaded out */
#delete-button:disabled {
    opacity: 0.6; /* Slightly faded to indicate disabled state */
    background: #6c757d; /* Gray background to contrast with active dark green (#263238) */
    cursor: not-allowed; /* Cursor indicates non-clickable */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduced shadow for flatter appearance */
    text-shadow: none; /* Remove text shadow for less prominence */
}

#modify-button:disabled {
    opacity: 0.6; /* Slightly faded to indicate disabled state */
    background: #6c757d; /* Gray background to contrast with active dark green (#263238) */
    cursor: not-allowed; /* Cursor indicates non-clickable */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduced shadow for flatter appearance */
    text-shadow: none; /* Remove text shadow for less prominence */
}
