/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0a0e27;
    --navy-light: #141b3d;
    --cyan: #4fc3f7;
    --cyan-bright: #6dd5fa;
    --white: #ffffff;
    --gray: #8b92b4;
    --light-gray: #e8eaf6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--navy);
    color: var(--white);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--navy-light);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

/* Header Section */
.header-section {
    text-align: center;
    padding: 40px 30px;
    background: radial-gradient(ellipse at 50% 50%, rgba(79, 195, 247, 0.08) 0%, transparent 70%), var(--navy);
    color: var(--white);
    position: relative;
}

.logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 0 30px rgba(79, 195, 247, 0.3));
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.header-title .highlight {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.header-subtitle b {
    color: var(--cyan);
}

/* Main Content */
.main-content {
    padding: 40px;
}

/* Info Section */
.info-section {
    background: rgba(10, 14, 39, 0.6);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--cyan);
    border: 1px solid rgba(79, 195, 247, 0.1);
    border-left: 4px solid var(--cyan);
}

.info-section p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
}

.info-section b {
    color: var(--cyan);
}

/* Wallet Status */
.wallet-status {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(79, 195, 247, 0.05);
    border-radius: 8px;
    color: var(--cyan);
    border: 1px solid rgba(79, 195, 247, 0.2);
}

/* Button Container */
.button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

/* Buttons */
.btn,
button,
input[type="submit"] {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-bright) 100%);
    color: var(--navy);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
    margin-left: 10px;
    margin-top: 5px;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(79, 195, 247, 0.4);
}

/* Dashboard Section */
.dashboard-section {
    padding: 40px;
}

/* Form Section */
.form-section {
    background: rgba(10, 14, 39, 0.6);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

form {
    display: flex;
    background: rgba(10, 14, 39, 0.6);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(79, 195, 247, 0.1);
    width: 95%;
    margin-top: 20px;
    align-items: center;
}

select {
    height: 60px;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid rgba(79, 195, 247, 0.3);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

select:hover {
    border-color: var(--cyan);
    background: rgba(79, 195, 247, 0.05);
}

select option {
    background: var(--navy);
    color: var(--white);
}

input[type="text"] {
    height: 40px;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid rgba(79, 195, 247, 0.3);
    background: rgba(10, 14, 39, 0.6);
    color: var(--white);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.1);
}

input[type="text"]::placeholder {
    color: var(--gray);
}

label {
    padding: 10px;
    color: var(--gray);
}

/* Table Info */
.table-info {
    background: rgba(79, 195, 247, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray);
    text-align: center;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.table-info b {
    color: var(--cyan);
}

/* Responsive Wrapper */
.responsive-wrapper {
    overflow-x: auto;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

th {
    border: 1px solid rgba(79, 195, 247, 0.1);
    padding: 18px 15px;
    text-align: left;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--cyan);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.th-header {
    border: 1px solid rgba(79, 195, 247, 0.1);
    padding: 10px;
    text-align: left;
}

td {
    border: 1px solid rgba(79, 195, 247, 0.05);
    padding: 15px;
    font-size: 14px;
    text-align: left;
    color: var(--gray);
}

.td-numeric {
    border: 1px solid rgba(79, 195, 247, 0.05);
    padding: 10px;
    text-align: right;
}

.td-center {
    border: 1px solid rgba(79, 195, 247, 0.05);
    padding: 10px;
    text-align: center;
}

.td-button {
    border: 1px solid rgba(79, 195, 247, 0.05);
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.td-button input {
    padding: 10px 15px;
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    width: 150px;
    font-size: 14px;
    text-align: center;
    background: rgba(10, 14, 39, 0.6);
    color: var(--white);
    transition: border-color 0.3s ease;
}

.td-button input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.1);
}

.td-button input::placeholder {
    color: var(--gray);
}

.td-button button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

/* Table Row Hover */
#nft-table tbody tr {
    border-bottom: 1px solid rgba(79, 195, 247, 0.05);
    transition: all 0.3s ease;
}

#nft-table tbody tr:hover {
    background-color: rgba(79, 195, 247, 0.05);
}

#nft-table tbody tr:last-child {
    border-bottom: none;
}

#nft-table tbody td a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#nft-table tbody td a:hover {
    color: var(--cyan-bright);
    text-decoration: underline;
}

/* Button Variants */
.btn-stake {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    color: white !important;
}

.btn-stake:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.btn-unstake {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
}

.btn-unstake:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

/* Input Container */
.input-container {
    display: flex;
    align-items: center;
    width: 80%;
    margin-bottom: 20px;
}

.input-container img {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin-right: 15px;
    filter: drop-shadow(0 0 30px rgba(79, 195, 247, 0.3));
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-bright) 100%);
    color: var(--navy);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.tooltip-content {
    visibility: hidden;
    width: 300px;
    background-color: var(--navy-light);
    color: var(--gray);
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(79, 195, 247, 0.2);
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--navy-light) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* SVG Container (kept for backwards compatibility) */
.svg-container {
    display: flex;
    align-items: center;
    justify-content: right;
}

/* Button Not Table */
.button-nottable {
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-bright) 100%);
    color: var(--navy);
    border: none;
    cursor: pointer;
    margin-left: 15px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-nottable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content,
    .dashboard-section {
        padding: 25px 20px;
    }

    .header-title {
        font-size: 24px;
    }

    .logo {
        max-width: 80px;
    }

    .td-button {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .td-button input {
        width: 100%;
        margin-bottom: 5px;
    }

    form {
        flex-direction: column;
        align-items: stretch;
    }

    select,
    input[type="submit"] {
        width: 100%;
        margin-left: 0;
    }
}