/* Circle Area Calculator Styles */
.ca-container {
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ca-unit-selector {
    margin-bottom: 20px;
    text-align: center;
}

.ca-unit-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ca-unit-select {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.ca-unit-select:focus {
    outline: none;
    border-color: #4CAF50;
}

.ca-input-group {
    margin-bottom: 20px;
}

.ca-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.ca-label {
    flex: 0 0 120px;
    font-weight: 600;
    color: #333;
    text-align: right;
}

.ca-input {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    text-align: center;
    background: white;
    transition: border-color 0.3s;
    min-width: 0;
}

.ca-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.ca-unit-display {
    flex: 0 0 40px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.ca-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.ca-preset-btn {
    background: #e0e0e0;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
}

.ca-preset-btn:hover {
    background: #d0d0d0;
}

.ca-preset-btn:active {
    background: #c0c0c0;
}

.ca-result {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #4CAF50;
}

.ca-result-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.ca-result-value {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
}

.ca-result-formula {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.ca-converted-results {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ca-converted-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.ca-converted-values {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #555;
}

.ca-converted-value {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.ca-share {
    text-align: center;
}

.ca-share-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

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

.ca-share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    color: white;
}

.ca-share-vk { background: #4C75A3; }
.ca-share-tg { background: #0088cc; }
.ca-share-wa { background: #25D366; }
.ca-share-copy { background: #666; }

.ca-share-btn:hover {
    transform: scale(1.1);
}

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

.ca-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #4CAF50;
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .ca-container {
        padding: 15px;
    }
    
    .ca-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .ca-label {
        flex: none;
        text-align: left;
    }
    
    .ca-unit-display {
        flex: none;
        text-align: left;
    }
    
    .ca-share-buttons {
        gap: 10px;
    }
    
    .ca-share-btn {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
    
    .ca-presets {
        gap: 8px;
    }
    
    .ca-preset-btn {
        min-width: 45px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .ca-container {
        padding: 10px;
    }
    
    .ca-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .ca-unit-select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .ca-result {
        padding: 15px;
    }
    
    .ca-result-value {
        font-size: 20px;
    }
    
    .ca-presets {
        gap: 5px;
    }
    
    .ca-preset-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 40px;
    }
}

@media (max-width: 360px) {
    .ca-share-buttons {
        gap: 8px;
    }
    
    .ca-share-btn {
        width: 45px;
        height: 45px;
    }
    
    .ca-notification {
        padding: 20px 25px;
        font-size: 14px;
    }
    
    .ca-presets {
        gap: 4px;
    }
    
    .ca-preset-btn {
        min-width: 35px;
        padding: 5px 6px;
        font-size: 11px;
    }
}