/* Public Styles for CryptoExchanger */

.crypto-ex-calculator {
    max-width: 600px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.calculator-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 10px 20px rgba(0,0,0,0.1);
    padding: 32px;
}

.calculator-title {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.currency-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

.amount-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s;
}

.amount-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.currency-select {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: #f7fafc;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.2s;
}

.currency-select:focus {
    outline: none;
    border-color: #4299e1;
}

.currency-limits {
    margin-top: 6px;
    font-size: 12px;
    color: #718096;
}

.swap-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.swap-button {
    background: #edf2f7;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
}

.swap-button:hover {
    background: #e2e8f0;
    transform: rotate(180deg);
}

.rate-display {
    background: #f7fafc;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

.rate-label {
    font-size: 14px;
    color: #718096;
    margin-right: 8px;
}

.rate-value {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.text-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.submit-button:hover:not(:disabled) {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.submit-button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.calculator-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.calculator-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
    display: block;
}

.calculator-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
    display: block;
}

.info-notice {
    margin-top: 24px;
    padding: 16px;
    background: #ebf8ff;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-notice svg {
    flex-shrink: 0;
    color: #3182ce;
}

.info-notice p {
    margin: 0;
    font-size: 13px;
    color: #2c5282;
    line-height: 1.6;
}

/* Cashier Panel Styles */
.crypto-ex-cashier-panel {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.crypto-ex-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.crypto-ex-btn-primary {
    background: #4299e1;
    color: white;
}

.crypto-ex-btn-primary:hover {
    background: #3182ce;
}

.crypto-ex-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.crypto-ex-btn-secondary:hover {
    background: #cbd5e0;
}

.panel-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
}

.filter-select,
.filter-input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.orders-container {
    min-height: 300px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4299e1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.crypto-ex-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.crypto-ex-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 32px;
    border-radius: 8px;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.crypto-ex-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.crypto-ex-modal-close:hover {
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-card {
        padding: 24px;
    }
    
    .currency-input {
        flex-direction: column;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .panel-filters {
        flex-direction: column;
    }
}
