/* GP Tools Conversion Calculator Styles */
.gp-conversion-calculator {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: white;
}

.gp-calc-header {
    text-align: center;
    margin-bottom: 30px;
}

.gp-calc-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gp-calc-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.gp-calc-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.gp-calc-sidebar {
    flex: 0 0 280px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.gp-calc-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gp-calc-category-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.gp-calc-category-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.gp-calc-category-btn.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gp-calc-category-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.gp-calc-main {
    flex: 1;
    min-width: 600px;
}

.gp-calc-converter {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.gp-calc-converter-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.gp-calc-conversion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.gp-calc-unit-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gp-calc-label {
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.9;
}

.gp-calc-select,
.gp-calc-input {
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.gp-calc-select:focus,
.gp-calc-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.gp-calc-select option {
    background: #4c1d95;
    color: white;
}

.gp-calc-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.gp-calc-result {
    padding: 15px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #86efac;
    text-align: center;
}

.gp-calc-swap-btn {
    display: block;
    margin: 0 auto 25px;
    padding: 12px 24px;
    background: rgba(139, 92, 246, 0.8);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gp-calc-swap-btn:hover {
    background: rgba(139, 92, 246, 1);
    transform: translateY(-2px);
}

.gp-calc-quick-conversions {
    margin-top: 25px;
}

.gp-calc-quick-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.gp-calc-quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.gp-calc-quick-btn {
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gp-calc-quick-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.gp-calc-result-display {
    margin-top: 20px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
}

.gp-calc-result-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #93c5fd;
}

.gp-calc-result-unit {
    color: rgba(255,255,255,0.8);
    margin: 0 8px;
}

.gp-calc-result-equals {
    color: rgba(255,255,255,0.6);
    margin: 0 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gp-calc-container {
        flex-direction: column;
    }

    .gp-calc-sidebar {
        flex: none;
    }

    .gp-calc-main {
        min-width: auto;
    }

    .gp-calc-conversion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gp-calc-title {
        font-size: 2rem;
    }

    .gp-conversion-calculator {
        padding: 20px;
        margin: 10px;
    }
}

/* Loading state */
.gp-calc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.gp-calc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error state */
.gp-calc-error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}

/* Mobile dropdown styles */
.gp-calc-desktop { display: block; }
.gp-calc-mobile { display: none; }

@media (max-width: 768px) {
    .gp-calc-desktop { display: none; }
    .gp-calc-mobile { 
        display: block; 
        margin: 15px auto; 
        text-align: center; 
    }

    .gp-calc-category-dropdown {
        width: 90%;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.1);
        color: white;
        font-size: 16px;
        margin-top: 8px;
    }

    .gp-calc-mobile .gp-calc-label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
        color: rgba(255,255,255,0.9);
    }
}
