/* Contract Approval Styles */

/* Approval Section */
.approval-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Contract Info */
.contract-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.contract-details h3 {
    color: #00ff88;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.contract-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #888;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 6px;
    word-break: break-all;
    margin: 0.5rem 0;
}

.contract-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
}

/* Status Section */
.status-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.status-item span:first-child {
    font-weight: 500;
    color: #fff;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.approved {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-badge.not-approved {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-badge.error {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.status-badge.not-available {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Approve Button */
.approve-button {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approve-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #00cc6a, #00aa55);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.approve-button:active:not(:disabled) {
    transform: translateY(0);
}

.approve-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.approve-button.approved {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.6);
    }
}

.button-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.button-loader {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-loader.hidden {
    display: none;
}

.button-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #00ff88;
}

.success-message i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.success-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    max-width: 400px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
    cursor: pointer;
}

.notification.success {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.1);
}

.notification.error {
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(220, 53, 69, 0.1);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.notification.success .notification-content {
    color: #00ff88;
}

.notification.error .notification-content {
    color: #dc3545;
}

.notification-content i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contract-info {
        padding: 1rem;
    }
    
    .status-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .approve-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .contract-info {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .status-item {
        background: rgba(255, 255, 255, 0.02);
    }
}
