* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
}

a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Auth pages */
.auth-split-layout {
    display: flex;
    min-height: calc(100vh - 60px); /* Adjust for nav bar height */
    width: 100%;
}

.auth-info-side {
    flex: 1;
    padding: 40px 60px;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #30363d;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #161b22;
}

.auth-container {
    /* Kept for backwards compatibility if needed, but not used in split */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: #0d1117; /* Changed to match dark theme in the split view */
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

/* Content styling for the info side */
.info-content {
    max-width: 600px;
    margin: 0 auto;
}

.info-content h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 20px;
}

.info-content p {
    color: #8b949e;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.info-feature-list {
    list-style: none;
    padding: 0;
}

.info-feature-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-feature-list .icon {
    font-size: 20px;
}

.info-feature-list h4 {
    color: #c9d1d9;
    margin-bottom: 4px;
    font-size: 16px;
}

.info-feature-list p {
    font-size: 14px;
    margin-bottom: 8px; /* Added spacing for multiple paragraphs in a list item */
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .auth-split-layout {
        flex-direction: column;
    }
    .auth-info-side {
        border-right: none;
        border-bottom: 1px solid #30363d;
        padding: 40px 20px;
    }
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.subtitle {
    color: #8b949e;
    margin-bottom: 24px;
}

.error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid #f85149;
    color: #f85149;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field input {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.field input:focus {
    border-color: #1f6feb;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(180deg, #2ea043 0%, #238636 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #3fb950 0%, #2ea043 100%);
    box-shadow: 0 6px 16px rgba(35, 134, 54, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-google {
    background: #ffffff;
    color: #1f2328;
    border: 1px solid #d0d7de;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-google:hover {
    background: #f6f8fa;
    border-color: #afb8c1;
    transform: translateY(-1px);
    text-decoration: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: #484f58;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #30363d;
}

.divider span {
    padding: 0 12px;
}

.switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #8b949e;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #8b949e;
    font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-decoration: none;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8b949e;
    font-size: 14px;
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-sm:hover {
    color: #fff;
    border-color: #484f58;
    text-decoration: none;
}

.btn-danger {
    background: #da363420;
    color: #f85149;
    border-color: #f8514940;
}

.btn-danger:hover {
    background: #da3634;
    color: #fff;
    border-color: #f85149;
}

.safe-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.safe-badge.safe {
    background: #3fb95020;
    color: #3fb950;
    border: 1px solid #3fb95040;
}

.safe-badge.unsafe {
    background: #f8514920;
    color: #f85149;
    border: 1px solid #f8514940;
}

/* Dashboard */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 20px;
}

.stat-label {
    font-size: 12px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
}

.stat-value.green { color: #3fb950; }
.stat-value.purple { color: #d2a8ff; }
.stat-value.blue { color: #58a6ff; }

/* Node table */
.table-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #30363d;
}

.table-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 10px 20px;
    font-size: 12px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #30363d;
}

td {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #21262d;
}

tr:last-child td { border-bottom: none; }

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.online { background: #3fb950; }
.status-dot.offline { background: #484f58; }

.mono {
    font-family: monospace;
    font-size: 13px;
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: #484f58;
}

/* Role badges */
.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.provider-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.provider-badge.google {
    background: rgba(66, 133, 244, 0.15);
    color: #4285F4;
    border: 1px solid rgba(66, 133, 244, 0.3);
}

.provider-badge.email {
    background: rgba(139, 148, 158, 0.15);
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.3);
}

.role-select {
    background: #0d1117;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.role-select:focus {
    border-color: #1f6feb;
    outline: none;
}

.success-msg {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid #3fb950;
    color: #3fb950;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Pricing Cards */
.pricing-section {
    margin-top: 32px;
}

.pricing-section h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pricing-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

@keyframes border-walk {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.pricing-card.highlight {
    border: 1px solid transparent;
    background-image: linear-gradient(#161b22, #161b22), 
                      linear-gradient(90deg, #30363d 0%, #388bfd 50%, #30363d 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 200% 100%;
}

.pricing-card.highlight:hover {
    animation: border-walk 3s linear infinite;
    box-shadow: 0 0 25px rgba(56, 139, 253, 0.15);
    transform: translateY(-2px);
}

.pricing-card.dimmed {
    opacity: 0.4;
    filter: grayscale(0.5);
    background: #0d1117;
}

.pricing-card h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 24px;
    font-weight: 700;
    color: #3fb950;
    margin-bottom: 12px;
}

.pricing-card .price small {
    font-size: 14px;
    color: #8b949e;
    font-weight: 400;
}

.pricing-card p {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.4;
    margin-bottom: 0;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.pricing-card li {
    font-size: 12px;
    color: #8b949e;
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.pricing-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3fb950;
    font-weight: bold;
}

.pricing-card.dimmed li::before {
    color: #8b949e;
}

.pricing-category {
    font-size: 11px;
    text-transform: uppercase;
    color: #d2a8ff;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Download Section */
.download-section {
    margin-top: 24px;
}

.free-download {
    background: linear-gradient(145deg, #1c2128, #161b22);
    border-color: #3fb95040;
}

.download-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-download {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #388bfd 0%, #1f6feb 100%);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(31, 111, 235, 0.2);
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: linear-gradient(180deg, #4da5ff 0%, #388bfd 100%);
    box-shadow: 0 6px 20px rgba(31, 111, 235, 0.3);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.btn-download svg {
    opacity: 0.9;
}
