/* Professional Mobile-First Design */
.aed-pkr-pro-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Styles */
.aed-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.aed-header h2 {
    margin: 0 0 10px 0;
    font-size: clamp(1.2rem, 5vw, 1.8rem);
}

.live-rate-badge {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Table Styles */
.aed-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.aed-pro-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 300px;
}

.aed-pro-table th {
    background: #2d3748;
    color: white;
    padding: 15px 10px;
    font-weight: 600;
}

.aed-pro-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.aed-pro-table tr:hover {
    background: #f7fafc;
}

.aed-col {
    font-weight: 600;
    color: #667eea;
}

.pkr-col {
    font-weight: 600;
    color: #48bb78;
}

.copy-btn {
    background: #edf2f7;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #cbd5e0;
}

/* Individual Cards */
.aed-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.aed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.aed-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.aed-amount, .pkr-amount {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.amount {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: bold;
}

.aed-amount .amount {
    color: #667eea;
}

.pkr-amount .amount {
    color: #48bb78;
}

.equals-sign {
    font-size: 1.5rem;
    font-weight: bold;
    color: #a0aec0;
}

.currency-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

.currency {
    font-size: 0.8rem;
    color: #718096;
    margin-left: 5px;
}

.rate-info-small {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #718096;
}

/* Custom Converter */
.aed-custom-converter {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aed-custom-converter h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.custom-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-input-group input {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s;
}

.custom-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.custom-input-group button {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-input-group button:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.custom-result {
    margin-top: 15px;
    padding: 15px;
    background: #f0fff4;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
}

/* Last Updated Section */
.last-updated {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #718096;
}

.refresh-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
}

/* Loading States */
.aed-loading {
    text-align: center;
    padding: 30px;
    color: #667eea;
}

.aed-error {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
    .aed-card-inner {
        flex-direction: column;
    }
    
    .equals-sign {
        transform: rotate(90deg);
    }
    
    .aed-pro-table th,
    .aed-pro-table td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
    
    .custom-input-group {
        flex-direction: column;
    }
    
    .custom-input-group button {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .aed-pkr-pro-container {
        max-width: 900px;
        margin: 20px auto;
    }
    
    .aed-card {
        display: inline-block;
        width: calc(33.333% - 10px);
        margin: 5px;
        vertical-align: top;
    }
}

@media (min-width: 1024px) {
    .aed-card {
        width: calc(20% - 10px);
    }
}