/**
 * Premium WebTools - Data Size Converter
 * Styles for the Data Size Converter tool
 */

/* Tool Header Styles */
.tool-header {
    background: linear-gradient(135deg, #1a3a5f 0%, #0d1e2f 100%);
    color: #fff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid #D4AF37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tool-description {
    font-size: 1.1rem;
    max-width: 800px;
    opacity: 0.9;
}

/* Main Container Styles */
.converter-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 2.5rem;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Input Section Styles */
.input-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(26, 58, 95, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.input-group, .select-group {
    flex: 1;
    min-width: 200px;
}

.input-group label, .select-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1a3a5f;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(26, 58, 95, 0.2);
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1a3a5f;
    font-weight: 500;
}

.input-group input:focus {
    border-color: #D4AF37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background-color: #fff;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a3a5f;
    pointer-events: none;
    font-size: 1.2rem;
}

.unit-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(26, 58, 95, 0.2);
    border-radius: 8px;
    font-size: 1.1rem;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: #1a3a5f;
    font-weight: 500;
    cursor: pointer;
}

.unit-select:focus {
    border-color: #D4AF37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background-color: #fff;
}

.swap-btn {
    background: linear-gradient(135deg, #1a3a5f 0%, #0d1e2f 100%);
    color: #fff;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.swap-btn:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #b28e29 100%);
    transform: rotate(180deg);
    border-color: #1a3a5f;
}

/* Result Section Styles */
.result-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a3a5f 0%, #0d1e2f 100%);
    border-radius: 10px;
    border-left: 6px solid #D4AF37;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.result-container {
    flex: 1;
    min-width: 250px;
}

.result-container h3 {
    margin-top: 0;
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-display {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: baseline;
}

#resultValue {
    margin-right: 0.5rem;
}

#resultUnit {
    font-weight: 500;
    font-size: 1.4rem;
    color: #D4AF37;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.control-btn {
    padding: 0.9rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.control-btn.primary {
    background-color: #D4AF37;
    color: #1a3a5f;
    border-color: #D4AF37;
}

.control-btn.primary:hover {
    background-color: #e5c04e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.control-btn:not(.primary) {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.control-btn:not(.primary):hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #D4AF37;
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-btn i {
    font-size: 1rem;
}

/* Common Conversions Styles */
.common-conversions {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.common-conversions h3 {
    color: #1a3a5f;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 0.75rem;
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.common-conversions h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: #1a3a5f;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.conversion-item {
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #D4AF37;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.conversion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-left-color: #1a3a5f;
}

.conversion-title {
    font-weight: 700;
    color: #1a3a5f;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.conversion-value {
    color: #495057;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Information Section Styles */
.info-section {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 58, 95, 0.1);
}

.info-section h2 {
    color: #1a3a5f;
    margin-bottom: 2rem;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 0.75rem;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
}

.info-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: #1a3a5f;
}

.info-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid #1a3a5f;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-left-color: #D4AF37;
}

.info-card h3 {
    color: #1a3a5f;
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #D4AF37;
}

.info-card p {
    color: #495057;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.info-card ul {
    padding-left: 1.5rem;
    color: #495057;
    margin-bottom: 1rem;
}

.info-card li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    position: relative;
    padding-left: 0.5rem;
}

.info-card strong {
    color: #1a3a5f;
    font-weight: 700;
}

/* FAQ Section Styles */
.faq-container {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(to right, #1a3a5f, #0d1e2f);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.faq-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.faq-container h2 {
    color: #D4AF37;
    margin-bottom: 2rem;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 0.75rem;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.faq-container h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: #fff;
}

.faq-item {
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.25rem 1.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.faq-toggle {
    color: #D4AF37;
    transition: transform 0.3s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.faq-answer.active {
    padding: 1.5rem 1.75rem;
    max-height: 500px;
}

.faq-answer p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.faq-toggle i.fa-chevron-up {
    transform: rotate(180deg);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.toast {
    background: linear-gradient(135deg, #1a3a5f 0%, #0d1e2f 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    animation: slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.toast.success {
    border-left: 5px solid #D4AF37;
}

.toast.success::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #D4AF37;
    margin-right: 12px;
    font-size: 1.2rem;
}

.toast.error {
    border-left: 5px solid #dc3545;
}

.toast.error::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #dc3545;
    margin-right: 12px;
    font-size: 1.2rem;
}

.toast.info {
    border-left: 5px solid #17a2b8;
}

.toast.info::before {
    content: '\f129';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #17a2b8;
    margin-right: 12px;
    font-size: 1.2rem;
}

.toast-content {
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 18px;
    margin-left: 15px;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-close:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes slide-in {
    from {
        transform: translateX(100%) translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .input-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .swap-btn {
        align-self: center;
        margin: 0.5rem 0;
        transform: rotate(90deg);
    }
    
    .swap-btn:hover {
        transform: rotate(270deg);
    }
    
    .result-section {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        margin-top: 1.5rem;
        justify-content: center;
    }
    
    .conversion-grid {
        grid-template-columns: 1fr;
    }
}
