body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e2e8f0;
}

.container {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
}

#connection-section {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.connection-status {
    color: #94a3b8;
    font-size: 0.9em;
    white-space: normal;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.connection-status:hover {
    max-width: none;
    white-space: normal;
    word-break: break-word;
}

.connection-status .user-roles {
    color: #38bdf8;
    font-size: 0.8em;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

h1 {
    color: #f1f5f9;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    padding-top: 10px;
}

/* Recovery Mode Indicator */
.recovery-mode-indicator {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(153, 27, 27, 0.3);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.recovery-indicator-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.recovery-icon {
    font-size: 1.2em;
    animation: flash 1.5s ease-in-out infinite;
}

.recovery-text {
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.recovery-description {
    font-size: 0.9em;
    color: #e5b4b4;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 2px 8px rgba(153, 27, 27, 0.3);
    }
    100% {
        box-shadow: 0 3px 12px rgba(153, 27, 27, 0.4);
    }
}

@keyframes flash {
    0%, 50% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.7;
    }
}

/* Main Navigation Toolbar */
.main-toolbar {
    display: flex;
    background: rgba(51, 65, 85, 0.9);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 20px;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.toolbar-tab {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-tab:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

.toolbar-tab.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.toolbar-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pending-indicator {
    background: #fbbf24;
    color: #92400e;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    animation: gentlePulse 2s infinite;
    letter-spacing: 0.5px;
}

@keyframes gentlePulse {
    0%, 100% { opacity: 1; background: #fbbf24; }
    50% { opacity: 0.7; background: #f59e0b; }
}

/* Main Sections */
.main-section {
    display: none;
}

.main-section.active {
    display: block;
}

/* Two-column horizontal layout for info sections */
.info-sections-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Recovery Panel section styling */
#recoveryPanelSection {
    padding: 20px;
}

#recoveryPanelSection .section-card {
    margin-bottom: 20px;
}

.info-section {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 20px;
    background: rgba(51, 65, 85, 0.8);
    backdrop-filter: blur(10px);
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.info-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.0em;
    color: #38bdf8;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 8px;
    font-weight: 600;
}

/* Adjust roles section within the info-section */
.info-section .roles-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.info-section .role-group {
    padding: 8px;
    margin-bottom: 0;
}

.info-section .role-title {
    font-size: 0.8em;
    margin-bottom: 4px;
}

/* Responsive design - stack vertically on smaller screens */
@media (max-width: 1200px) {
    .info-sections-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    #connection-section {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    h1 {
        padding-top: 0;
    }
    
    .recovery-trigger-button {
        min-width: 280px;
        max-width: 90%;
        font-size: 1.1em;
        padding: 18px 30px;
    }
}

/* Compact sections for contract info, balance, and roles */
h2 {
    color: #38bdf8;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    padding-bottom: 8px;
    margin-bottom: 20px;
    margin-top: 25px;
    font-size: 1.2em;
    font-weight: 600;
}

.status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.status-item {
    background: rgba(71, 85, 105, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(71, 85, 105, 0.8);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.status-label {
    font-size: 0.75em;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-weight: 600;
    font-size: 0.9em;
    color: #f1f5f9;
    word-break: break-all;
}

#tokenBalances {
    font-size: 0.8em;
    line-height: 1.4;
    font-family: 'Courier New', monospace;
}

#tokenBalances br {
    margin: 1px 0;
}

.token-balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.token-balance-item:last-child {
    border-bottom: none;
}

.token-balance {
    flex: 1;
}

.remove-token-button {
    background: rgba(220, 53, 69, 0.3);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 3px;
    color: #dc3545;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.remove-token-button:hover {
    background: rgba(220, 53, 69, 0.5);
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3);
}

/* Add Token Section */
.add-token-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.add-token-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}

.token-address-input {
    background: rgba(0, 50, 50, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #e0f7fa;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    flex: 1;
    min-width: 160px;
    max-width: 100%;
}

.token-address-input:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

.token-address-input::placeholder {
    color: rgba(224, 247, 250, 0.5);
}

.add-token-button {
    background: linear-gradient(135deg, rgba(0, 150, 150, 0.8), rgba(0, 100, 100, 0.8));
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 6px;
    color: #e0f7fa;
    padding: 8px 12px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.add-token-button:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 180, 180, 0.9), rgba(0, 120, 120, 0.9));
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

.add-token-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-token-status {
    font-size: 0.8em;
    margin-top: 5px;
    padding: 6px 10px;
    border-radius: 4px;
    display: none;
    position: relative;
    z-index: 10;
    font-weight: 500;
    line-height: 1.3;
}

.add-token-status.success {
    background: rgba(40, 167, 69, 0.3);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.5);
    display: block;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.add-token-status.error {
    background: rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.5);
    display: block;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    animation: errorPulse 0.5s ease-in-out;
}

.add-token-status.loading {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.5);
    display: block;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

@keyframes errorPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    }
}

.roles-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.role-group {
    background: rgba(71, 85, 105, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    padding: 12px;
    backdrop-filter: blur(5px);
}

.role-title {
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 8px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.address-item {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.7em;
    word-break: break-all;
    line-height: 1.3;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.address-item:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(56, 189, 248, 0.3);
}

.loading {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    font-size: 0.8em;
    padding: 8px;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

#tokenBalances {
    font-size: 0.95em;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
}

#tokenBalances br {
    margin: 2px 0;
}

/* Ensure all buttons can show tooltips */
button {
    position: relative;
}

.connect-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    margin: 10px 0;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.connect-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.connect-button:disabled {
    background: rgba(71, 85, 105, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.disconnect-button {
    background: rgba(71, 85, 105, 0.8);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    margin: 10px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.disconnect-button:hover {
    background: rgba(71, 85, 105, 1);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-1px);
}

/* Emergency Recovery Trigger Section */
.recovery-trigger-section {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.recovery-trigger-button {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: 2px solid #fca5a5;
    padding: 20px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    text-align: center;
    min-width: 350px;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    display: block;
    margin: 0 auto;
}

.recovery-trigger-button:not(.role-disabled) {
    animation: emergencyPulse 2s infinite;
}

.recovery-trigger-button:not(.role-disabled):hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.6);
}

.recovery-trigger-button.role-disabled {
    background: rgba(71, 85, 105, 0.4) !important;
    color: #64748b !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    box-shadow: none !important;
    animation: none !important;
}

.recovery-subtitle {
    font-size: 0.7em;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 5px;
    opacity: 0.9;
}

/* Emergency pulsing animation */
@keyframes emergencyPulse {
    0% {
        box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4), 0 0 0 0 rgba(220, 38, 38, 0.7);
        border-color: #fca5a5;
    }
    50% {
        box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6), 0 0 0 15px rgba(220, 38, 38, 0);
        border-color: #f87171;
    }
    100% {
        box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4), 0 0 0 0 rgba(220, 38, 38, 0);
        border-color: #fca5a5;
    }
}

/* Recovery Mode Section Styles */
.recovery-mode-section {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(185, 28, 28, 0.1) 100%);
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(10px);
}

.recovery-mode-header {
    text-align: center;
    margin-bottom: 25px;
}

.recovery-mode-header h2 {
    color: #fca5a5;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.recovery-mode-header p {
    color: #f1f5f9;
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

.recovery-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.recovery-action-button {
    padding: 12px 24px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.recovery-action-button.exit-recovery {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(21, 128, 61, 0.3) 100%);
    color: #86efac;
    border-color: #22c55e;
}

.recovery-action-button.exit-recovery:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(21, 128, 61, 0.4) 100%);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.recovery-action-button.cancel-all {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.3) 100%);
    color: #fca5a5;
    border-color: #ef4444;
}

.recovery-action-button.cancel-all:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(185, 28, 28, 0.4) 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.recovery-action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.recovery-role-management {
    margin-top: 25px;
}

.recovery-role-management h3 {
    color: #f1f5f9;
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.recovery-roles-container {
    display: grid;
    gap: 20px;
}

.recovery-role-group {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.recovery-role-title {
    color: #38bdf8;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grant-role-button {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(21, 128, 61, 0.3) 100%);
    color: #86efac;
    border: 1px solid #22c55e;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.grant-role-button:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(21, 128, 61, 0.4) 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.grant-role-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recovery-role-members {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recovery-role-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.recovery-member-address {
    font-family: 'Courier New', monospace;
    color: #e2e8f0;
    font-size: 0.9em;
}

.revoke-role-button {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.3) 100%);
    color: #fca5a5;
    border: 1px solid #ef4444;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.revoke-role-button:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(185, 28, 28, 0.4) 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.revoke-role-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.grant-role-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.grant-role-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #e2e8f0;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.grant-role-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.grant-role-input::placeholder {
    color: #64748b;
}

.transaction-form {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 0;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.transaction-tabs {
    display: flex;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1em;
    color: #94a3b8;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button:hover {
    background-color: rgba(71, 85, 105, 0.4);
    color: #e2e8f0;
}

.tab-button.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
    background-color: rgba(51, 65, 85, 0.6);
}

.transaction-panel {
    display: none;
    padding: 20px;
}

.transaction-panel.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
    background: rgba(30, 41, 59, 1);
}

.form-input::placeholder {
    color: #64748b;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    font-size: 1em;
    resize: vertical;
    min-height: 80px;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
    background: rgba(30, 41, 59, 1);
}

.form-textarea::placeholder {
    color: #64748b;
}

.propose-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.propose-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.propose-button:disabled {
    background: rgba(71, 85, 105, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    font-size: 1em;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
    background: rgba(30, 41, 59, 1);
}

.form-select:disabled {
    background: rgba(71, 85, 105, 0.4);
    color: #64748b;
    cursor: not-allowed;
}

.token-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.token-input-group .form-input {
    flex: 1;
}

.token-input-group .form-select {
    flex: 1;
}

.token-info {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 0.9em;
    color: #34d399;
    backdrop-filter: blur(5px);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 0.9em;
    color: #f87171;
    backdrop-filter: blur(5px);
}

.form-help {
    font-size: 0.8em;
    color: #94a3b8;
    margin-top: 4px;
}

.form-input:disabled, .form-select:disabled {
    background: rgba(71, 85, 105, 0.4);
    color: #64748b;
    cursor: not-allowed;
}

.proposal-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.proposal-status.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.proposal-status.pending {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.proposal-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.operations-section {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 24px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px); /* Make the operations section fill most of the viewport */
}

.operations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.refresh-button {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(8, 145, 178, 0.3);
}

.refresh-button:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.4);
}

.refresh-button:disabled {
    background: rgba(71, 85, 105, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.operations-count {
    font-weight: 600;
    color: #e2e8f0;
    transition: all 0.2s;
}

.operations-count.pending {
    font-weight: 700;
    color: #fbbf24;
    font-size: 1.1em;
    background: rgba(245, 158, 11, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: inline-block;
    backdrop-filter: blur(5px);
}

.operations-count.total {
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.9em;
}

.operations-list {
    flex: 1; /* Take up remaining space in the flex container */
    overflow-y: auto;
    min-height: 300px; /* Ensure minimum height for usability */
}

.operation-item {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.operation-item:hover {
    background: rgba(51, 65, 85, 1);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.operation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.operation-id {
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    color: #94a3b8;
    word-break: break-all;
}

.operation-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-waiting {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-ready {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-done {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-unset {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-recovery-executed {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2));
    color: #ff6b35;
    border: 2px solid #ff6b35;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
    animation: recoveryPulse 2s ease-in-out infinite;
}

@keyframes recoveryPulse {
    0%, 100% { box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 4px 8px rgba(255, 107, 53, 0.5), 0 0 12px rgba(255, 107, 53, 0.2); }
}

/* Recovery operation specific styling */
.recovery-operation {
    border-left: 4px solid #ff6b35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
}

.recovery-note {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.transaction-display.role-management,
.transaction-display.recovery-eth-transfer,
.transaction-display.recovery-token-transfer,
.transaction-display.recovery-generic {
    border-left: 3px solid #ff6b35;
}

/* Remove inner red borders when already inside a recovery operation container */
.recovery-operation .transaction-display.role-management,
.recovery-operation .transaction-display.recovery-eth-transfer,
.recovery-operation .transaction-display.recovery-token-transfer,
.recovery-operation .transaction-display.recovery-generic {
    border-left: none;
}

/* Cancel-all operation styling */
.cancel-all-operation {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-left: 3px solid #fbbf24;
}

.cancel-all-operation .operation-header {
    background-color: #2d3748;
}

.cancel-all-operation .operation-type {
    color: #fbbf24;
}

.status-all-cancelled {
    background-color: #fbbf24;
    color: #1a202c;
    font-weight: bold;
}

.epoch-display {
    font-weight: bold;
    color: #fbbf24;
    background-color: #2d3748;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.impact-notice {
    margin-top: 10px;
}

.operation-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.operation-field {
    display: flex;
    flex-direction: column;
}

.operation-field-label {
    font-size: 0.8em;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.operation-field-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
    color: #e2e8f0;
}

.operation-time {
    grid-column: 1 / -1;
}

.no-operations {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 40px;
}

.operation-actions {
    margin-top: 15px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.execute-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.execute-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.execute-button:disabled {
    background: rgba(71, 85, 105, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.cancel-button:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.cancel-button:disabled {
    background: rgba(71, 85, 105, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Role-based button styling */
.role-disabled {
    background: rgba(71, 85, 105, 0.4) !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    position: relative;
    transform: none !important;
    box-shadow: none !important;
}

.role-disabled:hover {
    background: rgba(71, 85, 105, 0.4) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Custom tooltip for disabled buttons */
.role-disabled[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.role-disabled[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    pointer-events: none;
}

/* General tooltip system for any button with title attribute */
button[title]:not(.role-disabled):hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

button[title]:not(.role-disabled):hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    pointer-events: none;
}

/* Enhanced Transaction Display Styles */
.operation-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.operation-type {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.transaction-display {
    padding: 0;
}

.transaction-summary {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.transaction-summary:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.transaction-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.8;
}

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.transaction-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

.transaction-amount {
    text-align: right;
    flex-shrink: 0;
}

.amount-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: var(--font-mono);
    line-height: 1.2;
}

.amount-currency {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.transaction-details {
    display: grid;
    gap: var(--space-xs);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: none;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    margin-right: var(--space-lg);
}

.detail-value {
    font-size: 0.8125rem;
    color: var(--gray-800);
    text-align: right;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.address-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--gray-200);
    padding: 2px var(--space-xs);
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-left: var(--space-sm);
}

/* Clean, minimal transaction type indicators */
.eth-transfer .transaction-icon {
    color: #f59e0b;
}

.token-transfer .transaction-icon {
    color: #3b82f6;
}

.generic-transaction .transaction-icon {
    color: var(--gray-600);
}

/* New UI Elements for Restructured Layout */
.clickable-status {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-status:hover {
    background: rgba(56, 189, 248, 0.1);
    border-radius: 6px;
    transform: translateY(-1px);
}

.clickable-status:hover .status-value {
    color: #38bdf8;
}

.clickable-address {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clickable-address:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
}

.transaction-mode-header {
    margin-bottom: 20px;
}

.transaction-mode-header .recovery-mode-indicator {
    background: rgba(239, 68, 68, 0.15);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    color: #fca5a5;
    font-weight: 600;
    text-align: center;
    font-size: 0.9em;
    box-shadow: none;
    animation: none;
}

.recovery-control-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.recovery-status-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.recovery-actions-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.recovery-explanation {
    background: rgba(45, 55, 72, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.recovery-explanation h3 {
    color: #38bdf8;
    margin-top: 0;
    margin-bottom: 15px;
}

.recovery-explanation p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.recovery-explanation strong {
    color: #fbbf24;
}

/* Responsive adjustments for transaction displays */
@media (max-width: 768px) {
    .transaction-summary {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .transaction-amount {
        text-align: center;
    }
    
    .detail-row {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: left;
    }
    
    .detail-label {
        margin-right: 0;
        margin-bottom: var(--space-xs);
    }
    
    .detail-value {
        text-align: left;
    }
    
    .recovery-status-display {
        grid-template-columns: 1fr;
    }
}

/* Deploy Tab Styles */
.deploy-container {
    max-width: 800px;
}

.deploy-explanation {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.deploy-explanation h3 {
    color: #38bdf8;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.deploy-form {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    padding: 20px;
}

.deploy-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.deploy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.deploy-section h4 {
    color: #38bdf8;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.role-config-group {
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    padding: 15px;
}

.role-config-group h5 {
    color: #e2e8f0;
    margin-bottom: 10px;
    font-size: 0.95em;
    font-weight: 600;
}

.role-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.role-input-group .form-input {
    flex: 1;
}

.add-role-button {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.add-role-button:hover {
    background: #059669;
    transform: translateY(-1px);
}

.add-role-button:disabled {
    background: #374151;
    cursor: not-allowed;
    transform: none;
}

.role-list {
    min-height: 20px;
}

.role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.role-item:hover {
    background: rgba(56, 189, 248, 0.15);
}

.role-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e2e8f0;
}

.role-item.anyone-execute {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-weight: 500;
}

.remove-role-button {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-role-button:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.executor-special-config {
    margin-bottom: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #10b981;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #10b981;
}

.deploy-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.deploy-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.deploy-button:disabled {
    background: #374151;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.deployment-status {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 6px;
    padding: 15px;
    white-space: pre-line;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

.deployment-status.pending {
    border-left: 4px solid #3b82f6;
    color: #93c5fd;
}

.deployment-status.success {
    border-left: 4px solid #10b981;
    color: #6ee7b7;
}

.deployment-status.error {
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

.deploy-help {
    font-size: 0.85em;
    color: #94a3b8;
    margin-top: 5px;
    line-height: 1.3;
}

.deploy-help.success {
    color: #10b981;
}

.deploy-help.error {
    color: #ef4444;
}

/* Role Management Special Cases */
.anyone-execute-notice {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(21, 128, 61, 0.1));
    border: 2px solid #22c55e;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 5px 0;
    color: #e2e8f0;
}

.anyone-execute-notice .notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 6px;
    font-size: 1em;
}

.anyone-execute-notice .notice-description {
    color: #86efac;
    font-size: 0.9em;
    line-height: 1.4;
}

.anyone-execute-notice .zero-address {
    font-family: 'Courier New', monospace;
    background: rgba(34, 197, 94, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    font-size: 0.85em;
}

.role-management-special-case {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 5px 0;
    color: #34d399;
    font-style: italic;
}

/* Beta Warning Banner */
.beta-warning-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 60px 0 24px 0; /* Top margin increased to avoid overlap with absolute positioned connection section */
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.1);
    clear: both; /* Ensure it clears any floated elements */
}

.beta-warning-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.beta-icon {
    font-size: 1.2em;
}

.beta-text {
    font-weight: 800;
    font-size: 1.1em;
    color: #fca5a5;
    letter-spacing: 0.5px;
}

.beta-description {
    color: #fed7d7;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .beta-warning-content {
        flex-direction: column;
        gap: 6px;
    }
    
    .beta-text {
        font-size: 1em;
    }
    
    .beta-description {
        font-size: 0.85em;
        text-align: center;
    }
    
    .beta-warning-banner {
        margin: 16px 0 20px 0; /* Reset margin for mobile since connection section is static */
    }
}

/* Critical Role Protection Warning */
.critical-role-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0;
    color: #e2e8f0;
}

.critical-role-warning .warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 6px;
    font-size: 1em;
}

.critical-role-warning .warning-description {
    color: #fcd34d;
    font-size: 0.9em;
    line-height: 1.4;
    font-weight: 500;
}

/* Time Input Components for Deploy */
.time-input-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.time-input {
    width: 70px;
    padding: 8px 6px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    font-size: 0.9em;
    text-align: center;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    transition: all 0.3s ease;
}

.time-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
    background: rgba(30, 41, 59, 1);
}

.time-input::placeholder {
    color: #64748b;
}

.time-label {
    font-size: 0.8em;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#delayDisplay {
    font-weight: 600;
    color: #38bdf8;
}

@media (max-width: 768px) {
    .time-input-container {
        justify-content: center;
        gap: 10px;
    }
    
    .time-input {
        width: 60px;
        font-size: 0.85em;
    }
    
    .time-label {
        font-size: 0.75em;
    }
}
