/* Tool Cards */
.tool-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2.5rem;
    color: white;
}

.tool-content {
    flex: 1;
}

.tool-content h4 {
    color: #2c3e50;
    margin: 0;
}

.tool-content p {
    margin: 0;
    line-height: 1.6;
}

.tool-arrow {
    font-size: 1.5rem;
    color: #667eea;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Small Tool Cards */
.tool-card-small {
    display: block;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.tool-card-small:hover {
    border-color: #667eea;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.tool-icon-small {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto;
}

.tool-card-small h5 {
    color: #2c3e50;
}

/* Badge Colors */
.bg-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-pink {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-teal {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Tool Page Styles */
.tool-page {
    min-height: 80vh;
}

.tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-display {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    font-size: 2rem;
    font-weight: 600;
    text-align: right;
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calculator-button {
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: white;
    transition: all 0.2s ease;
}

.calculator-button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

.calculator-button.operator {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.calculator-button.operator:hover {
    background: #5568d3;
}

.calculator-button.equals {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.calculator-button.equals:hover {
    background: #059669;
}

.calculator-button.clear {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.calculator-button.clear:hover {
    background: #dc2626;
}

/* Form Controls */
.form-control-lg {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
}

.form-control-lg:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Result Cards */
.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

.result-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Color Palette */
.color-swatch {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.05);
    border-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.color-code {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Font Pairing */
.font-preview {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.font-preview:hover {
    border-color: #667eea;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.font-heading {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.font-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Barcode Display */
.barcode-display {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.barcode-display svg {
    max-width: 100%;
    height: auto;
}

/* Image Preview */
.image-preview-container {
    background: #f8f9fa;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .tool-card {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-arrow {
        display: none;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .calculator-button {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .calculator-display {
        font-size: 1.5rem;
    }
}