/* Gulf Currency Converter Styles */
.gulf-currency-converter {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
}

/* Gulf Banner */
.cc-gulf-banner {
    background: linear-gradient(135deg, #0c2461 0%, #1e3799 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
}

.cc-gulf-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.cc-gulf-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-gulf-flag {
    font-size: 28px;
    line-height: 1;
}

.cc-gulf-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 15px;
}

/* Quick Convert Section */
.cc-gulf-quick-convert {
    margin-top: 20px;
}

.cc-quick-label {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.8;
}

.cc-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.cc-quick-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc-quick-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.cc-quick-flag {
    font-size: 20px;
    margin-right: 8px;
}

.cc-quick-name {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Main Converter */
.cc-main-converter {
    padding: 30px;
}

.cc-input-section {
    margin-bottom: 30px;
}

/* Amount Row */
.cc-amount-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.cc-amount-box {
    flex: 1;
}

.cc-amount-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cc-currency-symbol {
    position: absolute;
    left: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    z-index: 1;
}

.cc-amount {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    background: white;
}

.cc-amount:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.cc-convert-icon {
    color: #3498db;
    font-size: 24px;
    padding: 10px;
}

.cc-result-preview {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cc-preview-amount {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    min-height: 30px;
}

.cc-preview-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Currency Row */
.cc-currency-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}

.cc-from-section,
.cc-to-section {
    flex: 1;
}

.cc-from-section label,
.cc-to-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-from,
.cc-to {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #2c3e50;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 45px;
}

.cc-from:focus,
.cc-to:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.cc-swap-section {
    margin-bottom: 8px;
}

.cc-swap-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cc-swap-btn:hover {
    background: #3498db;
    border-color: #3498db;
    color: white;
    transform: rotate(180deg);
}

.cc-swap-btn .dashicons {
    transition: transform 0.3s ease;
}

.cc-swap-btn:hover .dashicons {
    transform: rotate(180deg);
}

/* Action Row */
.cc-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cc-convert-btn {
    flex: 1;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    padding: 18px 30px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-convert-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9 0%, #1f6394 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.cc-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.cc-convert-btn.cc-loading {
    position: relative;
}

.cc-convert-btn.cc-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cc-extra-actions {
    display: flex;
    gap: 10px;
}

.cc-reset-btn,
.cc-history-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.cc-reset-btn:hover,
.cc-history-btn:hover {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* Result Section */
.cc-result-section {
    margin-bottom: 30px;
}

.cc-result-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cc-result-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-result-header h4 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-result-time {
    font-size: 12px;
    opacity: 0.7;
    font-family: monospace;
}

.cc-result-body {
    padding: 30px 25px;
    text-align: center;
}

.cc-original-amount,
.cc-converted-amount {
    display: inline-block;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 5px;
}

.cc-amount-value {
    font-size: 32px;
    font-weight: 700;
    margin-right: 10px;
}

.cc-currency-code {
    font-size: 18px;
    opacity: 0.9;
}

.cc-equals {
    font-size: 24px;
    margin: 15px 0;
    color: #3498db;
    font-weight: bold;
}

.cc-exchange-rate {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 16px;
}

.cc-rate-value {
    font-family: monospace;
    font-weight: 600;
    color: #3498db;
}

.cc-result-footer {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

/* Error Card */
.cc-error-card {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cc-error-icon {
    color: #e53e3e;
    font-size: 20px;
}

.cc-error-message {
    color: #c53030;
    font-size: 14px;
    flex: 1;
}

/* Gulf Info Section */
.cc-gulf-info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.cc-gulf-info-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.cc-gulf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.cc-gulf-info-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cc-gulf-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.cc-gulf-flag {
    font-size: 32px;
}

.cc-gulf-details {
    flex: 1;
}

.cc-gulf-code {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 2px;
}

.cc-gulf-name {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 2px;
}

.cc-gulf-country {
    color: #3498db;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cc-gulf-peg {
    font-size: 11px;
    color: #95a5a6;
    font-style: italic;
}

/* Disclaimer */
.cc-disclaimer {
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.cc-disclaimer p {
    margin: 0;
    line-height: 1.6;
}

.cc-disclaimer .dashicons {
    color: #3498db;
    vertical-align: middle;
    margin-right: 5px;
}

/* Admin CSS */
.cc-dashboard {
    margin: 20px 0;
}

.cc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cc-dashboard-card {
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cc-dashboard-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.cc-dashboard-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.cc-shortcode-notice {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.cc-shortcode-notice h3 {
    margin-top: 0;
    color: #2196F3;
}

.cc-shortcode-notice code {
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid #b3e0ff;
}

.cc-gulf-info-panel {
    margin-top: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.cc-gulf-info-panel h3 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.cc-currency-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.cc-currency-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.cc-currency-flag {
    font-size: 40px;
    margin-bottom: 10px;
}

.cc-currency-code {
    font-weight: 700;
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 5px;
}

.cc-currency-name {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.cc-currency-country {
    color: #3498db;
    font-size: 12px;
    font-weight: 600;
}

/* API Info Boxes */
.cc-api-info-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cc-api-info-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

.cc-option-box {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.cc-option-box h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.cc-option-box p {
    margin: 5px 0;
    line-height: 1.5;
}

.cc-test-key {
    padding: 15px;
    margin-top: 15px;
    border-radius: 6px;
}

.cc-test-key h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.cc-test-key code {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    display: inline-block;
    margin-top: 5px;
}

/* Form Table Customizations */
.form-table .cc-admin-notice {
    background: #f0f9ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 10px 0;
}

.cc-admin-notice h3 {
    margin-top: 0;
    color: #2196F3;
}

.cc-admin-notice ol {
    margin: 10px 0;
    padding-left: 20px;
}

.cc-admin-notice li {
    margin-bottom: 8px;
}

/* Settings Form */
.cc-settings-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gulf-currency-converter {
        margin: 15px;
        border-radius: 12px;
    }
    
    .cc-gulf-banner {
        padding: 20px;
    }
    
    .cc-gulf-header h3 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .cc-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cc-amount-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .cc-currency-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .cc-swap-section {
        order: 3;
        align-self: center;
    }
    
    .cc-swap-btn {
        transform: rotate(90deg);
    }
    
    .cc-swap-btn:hover {
        transform: rotate(270deg);
    }
    
    .cc-action-row {
        flex-direction: column;
    }
    
    .cc-extra-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cc-gulf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cc-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .cc-main-converter {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cc-quick-grid {
        grid-template-columns: 1fr;
    }
    
    .cc-gulf-grid {
        grid-template-columns: 1fr;
    }
    
    .cc-currency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cc-gulf-info-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}