/* Crypto Trading Strategy Plugin Styles */

/* Form Styles */
.crypto-form-container {
    background-color: #003642;
    color: white;
    padding: 40px 40px 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.crypto-form-container h2 {
    text-align: center;
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
}

.crypto-form-container p.subtitle {
    text-align: center;
    color: #ffe866;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.5;
}

#cryptoTradingForm {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#cryptoTradingForm .form-group {
    margin-bottom: 20px;
}

#cryptoTradingForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    color: white;
    font-size: 21px;
    line-height: 1.3;
}

#cryptoTradingForm input[type="email"],
#cryptoTradingForm input[type="text"],
.cts-crypto-pair-input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
    height: 45px;
}

.cts-crypto-pair-dropdown {
    background-color: white;
    border-radius: 0 0 5px 5px;
    margin-top: -5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    position: absolute;
    width: 100%;
}

.cts-crypto-pair-dropdown div {
    padding: 10px;
    cursor: pointer;
    color: #333;
}

.cts-crypto-pair-dropdown div:hover {
    background-color: #f0f0f0;
}

.cts-crypto-pair-autocomplete {
    position: relative;
}

.coupon-field-container {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

/* Status messages */
.success-message {
    color: #4AE54A;
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.error-message {
    color: #ff3030;
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.info-message {
    color: #2196F3;
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

#coupon_status {
    font-size: 16px;
    min-height: 25px;
    margin-top: 5px;
}

/* Apply and Remove button styles */
.apply-button, 
.remove-button {
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    font-weight: 500;
    cursor: pointer;
    height: 45px;
    font-size: 16px;
    min-width: 80px;
    transition: all 0.2s ease;
}

.apply-button {
    background-color: #ffe866;
    color: #003642;
}

.apply-button:hover {
    background-color: #ffd700;
}

.remove-button {
    background-color: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.remove-button:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.checking-button {
    background-color: transparent !important;
    color: #ff6b6b !important;
    border: 2px solid #ff6b6b !important;
    border-radius: 5px;
    padding: 0 20px;
    font-weight: 500;
    cursor: wait;
    height: 45px;
    font-size: 16px;
    min-width: 80px;
}

/* Disabled button state */
.apply-button:disabled,
.remove-button:disabled,
.checking-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-button {
    background-color: #ffe866;
    color: #003642;
    border: none;
    border-radius: 5px;
    padding: 12px 0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.2s ease;
    height: 50px;
    width: 100%;
    max-width: 320px;
    align-self: center;
    margin: 15px auto 10px;
}

.submit-button:hover {
    background-color: #ffd700;
}

.disclaimer {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    color: #f5f5f5;
    line-height: 1.5;
}

/* Custom dropdown arrow */
.cts-crypto-pair-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 30px;
}

/* Analysis Results Styles */
.crypto-analysis-container {
    background-color: #003642;
    color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.crypto-analysis-header {
    text-align: center;
    margin-bottom: 25px;
}

.crypto-analysis-header h2 {
    color: white;
    margin-top: 0;
    font-size: 28px;
}

.crypto-analysis-header .pair-name {
    color: #ffe866;
    font-size: 20px;
    margin-bottom: 15px;
}

.current-price {
    background-color: rgba(255, 232, 102, 0.15);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    border-left: 4px solid #ffe866;
}

.current-price h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #ffe866;
}

.current-price .price-value {
    font-size: 24px;
    font-weight: bold;
}

.analysis-section {
    margin-bottom: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.analysis-section h3 {
    margin-top: 0;
    color: #ffe866;
    border-bottom: 1px solid rgba(255, 232, 102, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.strategy-point {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.strategy-point:before {
    content: "•";
    color: #ffe866;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.price-target {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

.price-target.buy {
    border-left: 3px solid #4caf50;
}

.price-target.sell {
    border-left: 3px solid #f44336;
}

.price-target .label {
    font-weight: bold;
}

.price-target .value {
    color: #ffe866;
}

.disclaimer-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #ccc;
    margin-top: 30px;
}

.disclaimer-box h4 {
    color: #ff6b6b;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .crypto-form-container,
    .crypto-analysis-container {
        padding: 25px;
        width: calc(100% - 30px);
        margin: 0 auto;
    }
    
    .price-target {
        flex-direction: column;
    }
    
    #cryptoTradingForm label {
        font-size: 18px;
    }
    
    .crypto-form-container h2 {
        font-size: 24px;
    }
    
    .crypto-form-container p.subtitle {
        font-size: 16px;
    }
}

/* Loading Animation */
.loading-container {
    text-align: center;
    padding: 40px 20px;
    background-color: #003642;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 232, 102, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ffe866;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Analysis Container */
.analysis-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.analysis-container h2 {
    color: #333;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.indicator {
    background-color: #fff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.indicator strong {
    color: #444;
    font-size: 16px;
}

.indicator ul {
    margin-top: 10px;
    padding-left: 20px;
}

.indicator li {
    margin-bottom: 5px;
}

/* Data Table */
.crypto-data-table {
    max-width: 800px;
    margin: 30px auto;
    overflow-x: auto;
}

.crypto-data-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.crypto-data-table th {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #ddd;
}

.crypto-data-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.crypto-data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.crypto-data-table tr:hover {
    background-color: #f1f1f1;
}

/* Error Messages */
.crypto-error {
    color: #d9534f;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    background-color: #f2dede;
}

/* Current Price Container */
.current-price-container {
    background-color: #f0f7ff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    border: 1px solid #d0e5ff;
    text-align: center;
}

.current-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.price-label {
    color: #333;
}

.price-value {
    color: #0066cc;
    font-size: 24px;
    font-family: monospace;
}

/* AI Analysis Section */
#ai-analysis-content {
    line-height: 1.6;
}

/* This ensures the market price in AI analysis matches the main display */
#ai-analysis-content {
    color: #555;
}

#ai-analysis-content strong {
    color: #333;
    font-weight: bold;
}

/* Style specifically for the price in the AI analysis */
#ai-analysis-content p:first-of-type {
    font-size: 18px;
    padding: 5px 0;
    font-family: monospace;
} 