/* Edoverse ZENI Staking - Stylesheet */

:root {
    /* Main colors - adjusted to match Edoverse branding */
    --primary-color: #5a45ff;
    --primary-dark: #4835d4;
    --secondary-color: #7a0bc0;
    --accent-color: #fa58b6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --background-color: #000000;
    --card-bg: #0a0a0a;
    --card-bg-lighter: #151515;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --border-color: rgba(90, 69, 255, 0.3);
    --neon-glow: 0 0 5px rgba(90, 69, 255, 0.7), 0 0 10px rgba(250, 88, 182, 0.5);
    --border-gradient: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Basic Styles */
body {
    font-family: 'Rajdhani', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23000000"/><path d="M0 10 L100 10" stroke="%23222222" stroke-width="0.5"/><path d="M0 20 L100 20" stroke="%23222222" stroke-width="0.5"/><path d="M0 30 L100 30" stroke="%23222222" stroke-width="0.5"/><path d="M0 40 L100 40" stroke="%23222222" stroke-width="0.5"/><path d="M0 50 L100 50" stroke="%23222222" stroke-width="0.5"/><path d="M0 60 L100 60" stroke="%23222222" stroke-width="0.5"/><path d="M0 70 L100 70" stroke="%23222222" stroke-width="0.5"/><path d="M0 80 L100 80" stroke="%23222222" stroke-width="0.5"/><path d="M0 90 L100 90" stroke="%23222222" stroke-width="0.5"/><path d="M10 0 L10 100" stroke="%23222222" stroke-width="0.5"/><path d="M20 0 L20 100" stroke="%23222222" stroke-width="0.5"/><path d="M30 0 L30 100" stroke="%23222222" stroke-width="0.5"/><path d="M40 0 L40 100" stroke="%23222222" stroke-width="0.5"/><path d="M50 0 L50 100" stroke="%23222222" stroke-width="0.5"/><path d="M60 0 L60 100" stroke="%23222222" stroke-width="0.5"/><path d="M70 0 L70 100" stroke="%23222222" stroke-width="0.5"/><path d="M80 0 L80 100" stroke="%23222222" stroke-width="0.5"/><path d="M90 0 L90 100" stroke="%23222222" stroke-width="0.5"/></svg>');
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    color: var(--text-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

/* Header */
header {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(var(--neon-glow));
}

/* Cards */
.card {
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(90, 69, 255, 0.5);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-gradient);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.card-header.bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #444) !important;
}

.info-card {
    background-color: var(--card-bg-lighter);
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 0 20px rgba(90, 69, 255, 0.2);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(90, 69, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(90, 69, 255, 0.4);
}

.btn-success {
    background: linear-gradient(to right, var(--success-color), #059669);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(to right, #059669, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(16, 185, 129, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: rgba(90, 69, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(90, 69, 255, 0.3);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Forms */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(90, 69, 255, 0.25);
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.form-text {
    color: var(--text-secondary);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes neonPulse {
    0% { text-shadow: 0 0 5px rgba(90, 69, 255, 0.5); }
    50% { text-shadow: 0 0 10px rgba(90, 69, 255, 0.8), 0 0 15px rgba(250, 88, 182, 0.5); }
    100% { text-shadow: 0 0 5px rgba(90, 69, 255, 0.5); }
}

@keyframes borderGlow {
    0% { box-shadow: 0 0 5px rgba(90, 69, 255, 0.5); }
    50% { box-shadow: 0 0 15px rgba(90, 69, 255, 0.8), 0 0 20px rgba(250, 88, 182, 0.4); }
    100% { box-shadow: 0 0 5px rgba(90, 69, 255, 0.5); }
}

.neon-pulse {
    animation: neonPulse c2s infinite;
}

.border-pulse {
    animation: borderGlow 3s infinite;
}

/* Transaction Table */
.table {
    color: var(--text-color);
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    border-top: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: white !important;
    padding: 1rem;
    background-color: rgba(90, 69, 255, 0.2);
    border-bottom: 2px solid var(--primary-color);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.table td {
    vertical-align: middle;
    padding: 1rem;
    border-color: rgba(255, 255, 255, 0.05);
}

.table-striped tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(90, 69, 255, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.07); /* Increased from 0.02 to 0.07 */
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.3); /* Added darker color for even rows */
}

/* Make ALL text in dark (even) rows much brighter and more visible */
.table-striped tbody tr:nth-of-type(even) td {
    color: #ffffff !important; /* Force white color with !important */
    font-weight: 500; /* Make text slightly bolder */
}

/* Make transaction hash in dark rows stand out more */
.table-striped tbody tr:nth-of-type(even) .tx-hash {
    color: #ffaadd !important; /* Lighter pink for better contrast */
    font-weight: 600; /* Bolder text */
}

.table-striped tbody tr:hover {
    background-color: rgba(90, 69, 255, 0.15); /* Increased from 0.05 to 0.15 */
}

/* Transaction Table Text color */
.table-striped tbody tr td {
    color: var(--text-color); /* Ensure text color is always bright */
}

/* Transaction History Note */
.transaction-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    border-left: 3px solid var(--info-color);
}

.transaction-note i {
    color: var(--info-color);
    margin-right: 0.5rem;
}

/* Empty transaction message */
.empty-transaction-message {
    color: var(--text-color) !important;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 500;
}

.empty-transaction-message i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: block;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 0.25rem;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Enhance badges in dark rows */
.table-striped tbody tr:nth-of-type(even) .badge {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.7); /* Stronger shadow */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
}

.bg-success {
    background: linear-gradient(to right, var(--success-color), #059669) !important;
}

.bg-warning {
    background: linear-gradient(to right, var(--warning-color), #d97706) !important;
}

.bg-danger {
    background: linear-gradient(to right, var(--danger-color), #dc2626) !important;
}

.bg-info {
    background: linear-gradient(to right, var(--info-color), #2563eb) !important;
}

/* Status Display */
#stakingStatus {
    font-weight: bold;
}

.status-active {
    color: var(--success-color);
    animation: neonPulse 2s infinite;
}

.status-waiting {
    color: var(--warning-color);
}

.status-inactive {
    color: var(--text-secondary);
}

/* Transaction History */
.tx-link {
    font-size: 0.85rem;
    word-break: break-all;
    display: inline-flex;
    align-items: center;
}

.tx-hash {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    color: var(--accent-color);
    font-weight: 500;
}

.tx-link:hover .tx-hash {
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(250, 88, 182, 0.5);
}

/* Modals */
.modal-content {
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 1.5rem 1rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem 1.5rem;
}

.btn-close {
    filter: invert(1) brightness(200%);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* Animations */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.spinner-border {
    color: var(--primary-color);
}

/* Wallet Display */
#walletAddress {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background-color: rgba(90, 69, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: monospace;
    color: var(--accent-color);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 2rem 0;
}

/* Additional Effects */
.glow-text {
    text-shadow: var(--neon-glow);
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Edo Style Decoration */
.edo-pattern {
    position: relative;
}

.edo-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="3" fill="none" stroke="%235a45ff20" stroke-width="1"/><path d="M20 10 L20 30 M10 20 L30 20" stroke="%235a45ff10" stroke-width="1"/></svg>');
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #walletAddress {
        display: block;
        margin-top: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .info-card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .tx-hash {
        max-width: 80px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Highlight effect for userStakingInfo when scrolled to */
.highlight-section {
    transition: background-color 1.5s ease;
}

/* Enhance hover effect for table rows */
.table-striped tbody tr:hover td {
    color: #ffffff;
    
}
/* Force text color for ALL table cells to be bright */
table td, 
.table td, 
tbody td, 
tr td,
.table-striped tbody tr td,
.table-striped tbody tr:nth-of-type(odd) td,
.table-striped tbody tr:nth-of-type(even) td,
[class*="table"] [class*="tr"] [class*="td"],
table tr td {
    color: white !important;
    font-weight: 500 !important;
    
}

/* Make transaction hash extremely visible */
.tx-hash,
a .tx-hash,
.tx-link .tx-hash,
[class*="tx-hash"],
*[class*="hash"] {
    color: #ff8ddd !important;
    font-weight: 600 !important;
    }

/* Force table header text to be extremely visible */
th, thead th, .table th, table th {
    color: white !important;
    font-weight: 700 !important;
    background-color: rgba(90, 69, 255, 0.2) !important;
    border-bottom: 2px solid #5a45ff !important;
}

/* Alternative approach: brighten the row backgrounds instead */
.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.1) !important; /* Much lighter background */
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0) !important; /* Even lighter for contrast */
}