/* 
 * Automotive Wire Size Calculator - Premium Styling
 */

.awc-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
    max-width: 900px;
    margin: 2rem auto;
    line-height: 1.5;
}

.awc-wrapper * {
    box-sizing: border-box;
}

.awc-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 0 20px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.awc-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.awc-header-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    backdrop-filter: blur(10px);
}

.awc-header-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.awc-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.awc-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.awc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .awc-body {
        grid-template-columns: 1fr;
    }
}

.awc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.awc-input-group {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.awc-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.awc-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #334155;
    font-size: 1rem;
}

.awc-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 1rem 0;
}

.awc-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    color: #1e293b;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.awc-select:hover {
    border-color: #94a3b8;
}

.awc-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.awc-range-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.awc-range {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.awc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.awc-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.awc-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: none;
}

.awc-number-input {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    width: 90px;
}

.awc-number-input input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    text-align: right;
    padding-right: 0.25rem;
    outline: none;
    font-family: inherit;
    appearance: textfield;
    -moz-appearance: textfield;
}

.awc-number-input input::-webkit-outer-spin-button,
.awc-number-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.awc-number-input span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.awc-number-input:focus-within {
    border-color: #3b82f6;
    background: #ffffff;
}

.awc-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.awc-result-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.awc-result-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

.awc-result-card.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

.awc-result-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.9;
    color: white;
}

.awc-awg-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.awc-awg-display span#awc-recommended-awg {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.awc-fuse-display {
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.awc-fuse-display span {
    font-weight: 800;
    font-size: 1.25rem;
}

.awc-awg-label {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.awc-explanation-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.awc-explanation-box h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: white;
}

.awc-explanation-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
    color: white;
}

.awc-education-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.awc-education-card h4 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.awc-education-card p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 1rem 0;
}

.awc-edu-list {
    margin: 0;
    padding: 0 0 0 1.25rem;
    font-size: 0.9rem;
    color: #475569;
}

.awc-edu-list li {
    margin-bottom: 0.5rem;
}

.awc-edu-list li:last-child {
    margin-bottom: 0;
}

.awc-ref-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    overflow: hidden;
}

.awc-ref-table th,
.awc-ref-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.awc-ref-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.awc-ref-table tr:last-child td {
    border-bottom: none;
}

.awc-footer-notes {
    padding: 1.5rem 2rem;
    background: #f1f5f9;
    color: #64748b;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.awc-footer-notes p {
    margin: 0;
}