/* Crypto Market PRO - Light Theme */
.cmp-dashboard {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin: 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.cmp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.cmp-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.cmp-last-update {
    color: #7f8c8d;
    font-size: 14px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
}

.cmp-chart-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.cmp-chart-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.cmp-chart-controls select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cmp-chart-controls select:hover {
    border-color: #3498db;
}

.cmp-chart-controls select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.cmp-period-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
}

.cmp-period-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.cmp-period-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.cmp-chart-container {
    position: relative;
    height: 250px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #eee;
}

.cmp-table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #eee;
    background: white;
}

.cmp-crypto-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.cmp-crypto-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #eaeaea;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cmp-crypto-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.cmp-crypto-table tr:hover {
    background: #f8f9fa;
}

.cmp-crypto-table tr:last-child td {
    border-bottom: none;
}

.cmp-rank {
    color: #7f8c8d;
    font-weight: 500;
    width: 50px;
}

.cmp-coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.cmp-coin-info img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.cmp-coin-info div {
    display: flex;
    flex-direction: column;
}

.cmp-coin-info strong {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
}

.cmp-coin-info small {
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 2px;
}

.cmp-price {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    min-width: 120px;
}

.cmp-change {
    font-weight: 600;
    font-size: 14px;
    min-width: 80px;
}

.cmp-change.positive {
    color: #27ae60;
}

.cmp-change.negative {
    color: #e74c3c;
}

.cmp-market-cap {
    color: #555;
    font-size: 14px;
    min-width: 150px;
}

.cmp-no-data {
    text-align: center;
    color: #7f8c8d;
    padding: 40px !important;
    font-style: italic;
}

.cmp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.cmp-refresh-btn {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cmp-refresh-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.cmp-refresh-btn:active {
    transform: translateY(0);
}

.cmp-refresh-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.cmp-api-info {
    color: #7f8c8d;
    font-size: 12px;
}

.cmp-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.cmp-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: cmp-spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.cmp-loader span {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
}

/* Widget Styles */
.cmp-chart-widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cmp-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cmp-chart-header h4 {
    margin: 0;
    color: #2c3e50;
}

.cmp-chart-loading {
    text-align: center;
    color: #7f8c8d;
    padding: 30px;
    font-style: italic;
}

.cmp-table-widget {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cmp-table-widget.compact .cmp-crypto-table th,
.cmp-table-widget.compact .cmp-crypto-table td {
    padding: 10px 15px;
    font-size: 13px;
}

.cmp-converter {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cmp-converter h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.cmp-converter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cmp-input-group {
    display: flex;
    gap: 10px;
}

.cmp-input-group input,
.cmp-input-group select {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cmp-input-group input:focus,
.cmp-input-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.cmp-converter-swap {
    text-align: center;
}

.cmp-swap-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cmp-swap-btn:hover {
    background: #e9ecef;
    border-color: #bbb;
}

.cmp-convert-btn {
    padding: 14px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cmp-convert-btn:hover {
    background: #27ae60;
}

.cmp-converter-result {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    display: none;
}

.cmp-converter-result strong {
    color: #2c3e50;
    font-size: 16px;
}

.cmp-converter-result small {
    color: #7f8c8d;
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

.cmp-ticker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.cmp-ticker-track {
    display: flex;
    gap: 30px;
    animation: cmp-ticker-scroll 30s linear infinite;
}

.cmp-ticker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.cmp-ticker-symbol {
    font-weight: bold;
    font-size: 16px;
}

.cmp-ticker-price {
    font-size: 15px;
}

.cmp-ticker-change.positive {
    color: #2ecc71;
}

.cmp-ticker-change.negative {
    color: #e74c3c;
}

@keyframes cmp-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cmp-dashboard {
        padding: 15px;
        margin: 15px 0;
    }
    
    .cmp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cmp-chart-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cmp-chart-controls select {
        min-width: 100%;
    }
    
    .cmp-input-group {
        flex-direction: column;
    }
    
    .cmp-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .cmp-refresh-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cmp-api-info {
        text-align: center;
    }
}

/* Admin Styles */
.cmp-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cmp-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cmp-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cmp-api-status {
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.cmp-api-status.online {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cmp-api-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cmp-quick-actions {
    margin: 30px 0;
}

.cmp-shortcode-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.cmp-shortcode-info code {
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: monospace;
    color: #e74c3c;
}

/* Animation for updates */
@keyframes cmp-highlight {
    0% { background-color: rgba(52, 152, 219, 0.1); }
    100% { background-color: transparent; }
}

.cmp-updated {
    animation: cmp-highlight 1s ease;
}

/* Tooltips */
.cmp-tooltip {
    position: relative;
    display: inline-block;
}

.cmp-tooltip .cmp-tooltip-text {
    visibility: hidden;
    background: #333;
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cmp-tooltip:hover .cmp-tooltip-text {
    visibility: visible;
    opacity: 1;
}