/* Moved from root to public for static serving */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    font-weight: 300;
}

/* Main Content */
.main-content {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .main-content {
        grid-template-columns: 2fr 1fr;
    }
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 600;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

/* Form Styles */
.transfer-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-group input {
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder {
    color: #666;
}

.help-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

/* Amount Input */
.amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input input {
    flex: 1;
    padding-right: 80px;
}

.currency {
    position: absolute;
    right: 20px;
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading State */
.btn-loading { display: flex; align-items: center; gap: 10px; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-top: 2px solid #ffffff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Transfers List */
.transfers-list { max-height: 400px; overflow-y: auto; }
.transfer-item { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 20px; margin-bottom: 15px; transition: all 0.3s ease; }
.transfer-item:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(5px); }
.transfer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.transfer-amount { font-size: 1.2rem; font-weight: 600; color: #00d4ff; }
.transfer-status { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.transfer-status.success { background: rgba(0, 255, 0, 0.2); color: #00ff00; }
.transfer-status.pending { background: rgba(255, 165, 0, 0.2); color: #ffa500; }
.transfer-status.failed { background: rgba(255, 0, 0, 0.2); color: #ff0000; }
.transfer-details { font-size: 0.9rem; color: #ccc; }
.transfer-details div { margin-bottom: 5px; }
.empty-state { text-align: center; color: #666; font-style: italic; padding: 40px 20px; }

/* Info Grid */
.info-grid { display: grid; gap: 15px; }
.info-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); }
.info-item .label { font-weight: 500; color: #ccc; }
.info-item .value { font-family: 'Courier New', monospace; font-size: 0.9rem; color: #00d4ff; word-break: break-all; }

/* Notification */
.notification { position: fixed; top: 20px; right: 20px; padding: 20px 25px; border-radius: 12px; font-weight: 500; z-index: 1000; max-width: 400px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); animation: slideIn 0.3s ease; }
.notification.success { background: linear-gradient(45deg, #00ff88, #00cc6a); color: #ffffff; }
.notification.error { background: linear-gradient(45deg, #ff4757, #ff3742); color: #ffffff; }
.notification.info { background: linear-gradient(45deg, #3742fa, #2f3542); color: #ffffff; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 15px; }
    .header h1 { font-size: 2rem; }
    .card { padding: 20px; }
    .button-group { flex-direction: column; }
    .btn { width: 100%; }
    .info-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .notification { right: 15px; left: 15px; max-width: none; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* Input Validation */
.form-group input:invalid { border-color: #ff4757; }
.form-group input:valid { border-color: rgba(255, 255, 255, 0.1); }

/* Copy Button */
.copy-btn { background: none; border: none; color: #00d4ff; cursor: pointer; padding: 5px; border-radius: 4px; transition: all 0.3s ease; }
.copy-btn:hover { background: rgba(0, 212, 255, 0.1); }
.address-display { display: flex; align-items: center; gap: 10px; }
.address-display .value { flex: 1; }


