/* === Volume Converter Styles === */
.vc-container {
    width: 100%;
    max-width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 auto;
}

.vc-container * {
    box-sizing: border-box;
}

/* Input Section */
.vc-input-section {
    margin-bottom: 30px;
}

.vc-input-group {
    width: 100%;
}

.vc-input-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.vc-input-wrapper {
    flex: 1;
    min-width: 250px;
}

.vc-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.vc-input-combo {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    background: white;
    transition: all 0.3s ease;
}

.vc-input-combo:focus-within {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.vc-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 16px;
    background: transparent;
    font-weight: 500;
    outline: none;
    min-width: 120px;
}

.vc-input:focus {
    outline: none;
}

.vc-select {
    flex: 1;
    min-width: 200px;
    border: none;
    padding: 14px 16px;
    font-size: 14px;
    background: transparent;
    cursor: pointer;
    border-left: 2px solid #e9ecef;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.vc-select:focus {
    outline: none;
}

.vc-swap-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.vc-swap-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    font-size: 18px;
}

.vc-swap-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

.vc-swap-btn:active {
    background: #21618c;
    transform: scale(0.95);
}

/* Results Section */
.vc-results-section {
    margin: 30px 0;
}

.vc-result-title {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.vc-main-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vc-result-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

/* Кнопки копирования */
.vc-copy-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 14px;
}

.vc-copy-btn:hover {
    background: #545b62;
    transform: scale(1.05);
}

.vc-copy-btn:active {
    transform: scale(0.95);
}

/* Состояние скопировано */
.vc-copy-btn.vc-copied {
    background: #27ae60 !important;
    transform: scale(1);
}

.vc-copy-btn .fa-check {
    display: none;
}

.vc-copy-btn.vc-copied .fa-copy {
    display: none;
}

.vc-copy-btn.vc-copied .fa-check {
    display: block !important;
    animation: vcBounceIn 0.6s ease;
}

@keyframes vcBounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.vc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.vc-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.vc-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vc-result-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vc-unit-name {
    font-size: 13px;
    color: #666;
    background: rgba(255,255,255,0.7);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Share Section */
.vc-share-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.vc-share-title {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.vc-share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Кнопки поделиться */
.vc-share-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.vc-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.vc-share-btn:active {
    transform: scale(0.95);
}

.vc-share-btn[data-platform="link"] { 
    background: #6c757d; 
}
.vc-share-btn[data-platform="vk"] { 
    background: #4a76a8; 
}
.vc-share-btn[data-platform="telegram"] { 
    background: #0088cc; 
}
.vc-share-btn[data-platform="whatsapp"] { 
    background: #25d366; 
}

/* Notifications */
.vc-notification {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100001 !important;
    background: #27ae60 !important;
    color: white !important;
    padding: 25px 35px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    animation: vcSlideIn 0.3s ease !important;
    text-align: center !important;
    min-width: 300px !important;
    max-width: 90vw !important;
}

@keyframes vcSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) !important;
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) !important;
    }
}

/* Font Awesome Base Styles */
.vc-container .fas,
.vc-container .far,
.vc-container .fab {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', sans-serif;
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.vc-container .far {
    font-weight: 400;
}

.vc-container .fab {
    font-family: 'Font Awesome 6 Brands', sans-serif;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vc-container {
        padding: 20px;
    }
    
    .vc-input-row {
        gap: 15px;
    }
    
    .vc-input-wrapper {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .vc-container {
        padding: 15px;
    }
    
    .vc-input-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .vc-input-wrapper {
        min-width: 100%;
    }
    
    .vc-swap-wrapper {
        order: 2;
        margin: 10px 0;
    }
    
    .vc-results-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .vc-main-result-item {
        padding: 16px;
    }
    
    .vc-result-value {
        font-size: 18px;
    }
    
    .vc-share-buttons {
        gap: 12px;
    }
    
    .vc-share-btn {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    .vc-notification {
        padding: 20px 25px;
        font-size: 14px;
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .vc-container {
        padding: 12px;
        border-radius: 8px;
    }
    
    .vc-input-combo {
        flex-direction: column;
    }
    
    .vc-input {
        border-bottom: 2px solid #e9ecef;
        min-width: 100%;
    }
    
    .vc-select {
        border-left: none;
        border-top: 2px solid #e9ecef;
        min-width: 100%;
    }
    
    .vc-main-result-item {
        padding: 12px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .vc-result-item {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .vc-share-buttons {
        gap: 10px;
    }
    
    .vc-share-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .vc-container {
        padding: 10px;
    }
    
    .vc-share-buttons {
        gap: 8px;
    }
    
    .vc-share-btn {
        width: 45px;
        height: 45px;
        font-size: 15px;
    }
}

/* Fallback Icons */
.vc-container .fa-exchange-alt::before { content: "⇄"; font-family: inherit; }
.vc-container .fa-copy::before { content: "📄"; font-family: inherit; }
.vc-container .fa-check::before { content: "✓"; font-family: inherit; }
.vc-container .fa-link::before { content: "🔗"; font-family: inherit; }
.vc-container .fa-vk::before { content: "VK"; font-family: inherit; font-weight: bold; }
.vc-container .fa-telegram-plane::before { content: "TG"; font-family: inherit; font-weight: bold; }
.vc-container .fa-whatsapp::before { content: "WA"; font-family: inherit; font-weight: bold; }

/* Критически важные исправления */
.vc-copy-btn,
.vc-share-btn,
.vc-swap-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.vc-copy-btn *,
.vc-share-btn *,
.vc-swap-btn * {
    pointer-events: none !important;
}