/* Root Variables */
:root {
    --primary: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5, #6366f1);
    --secondary: #6366f1;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --bg-light: #f8fafc;
    --border-light: #e5e7eb;
    --text-dark: #374151;
    --text-light: #6b7280;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background: #f3f4f6;
}

/* Container Styles */
.tool-container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tool-header {
    background: var(--primary-gradient);
    color: white;
    padding: 30px;
    text-align: center;
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tool-header h2 {
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 700;
}

.tool-header p {
    opacity: 0.9;
    margin: 0;
    font-size: 16px;
}

.tool-content {
    padding: 30px;
}

/* Form Elements */
.animated-form .input-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.input-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Submit Button */
.submit-button-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.submit-button {
    width: auto;
    min-width: 200px;
    padding: 16px 32px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.button-icon {
    font-size: 20px;
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.usage-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
}

.usage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.usage-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.usage-hint {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

/* Quality Selector */
.quality-selector {
    margin: 20px 0;
}

/* Result Containers */
.result-container {
    margin-top: 30px;
    display: none;
}

.result-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    animation: slideUp 0.4s ease-out;
	text-align: center;
}

/* Compatibility Result Styles */
.result-status-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    align-items: center;
    gap: 10px;
    display: flex;
    margin: 0 auto 20px;
    width: fit-content;
}

}

.status-icon-large {
    font-size: 24px;
}

.device-info {
    text-align: center;
    margin-bottom: 30px;
}

.device-specs {
    color: var(--text-light);
    margin-top: 5px;
}

.spec-divider {
    margin: 0 10px;
}

.compatibility-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    padding: 15px;
    transition: all 0.3s ease;
}

.detail-circle.success {
    border-color: var(--success);
}

.detail-circle.error {
    border-color: var(--error);
}

.circle-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.circle-label {
    font-size: 14px;
    color: var(--text-light);
}

.circle-status {
    font-weight: 600;
    font-size: 16px;
    margin-top: 5px;
}

.result-message {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-light);
    margin-top: 20px;
}

/* Calculator Result Styles */
.total-usage {
    text-align: center;
    margin-bottom: 30px;
}

.usage-ring {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.usage-number {
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
}

.usage-label {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

.usage-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
}

.usage-activity {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
}

.usage-details {
    flex: 1;
}

.usage-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.usage-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.5s ease-out;
}

.percentage {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 12px;
    color: var(--text-light);
}

/* Plan Recommendation Styles */
.plan-recommendation {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 30px;
}

.plan-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.plan-details {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.plan-usage {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.plan-features {
    padding: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-icon {
    color: var(--success);
    font-weight: bold;
}

/* Plan Type Variations */
.plan-icon.basic { background: rgba(16, 185, 129, 0.2); }
.plan-icon.standard { background: rgba(79, 70, 229, 0.2); }
.plan-icon.unlimited { background: rgba(239, 68, 68, 0.2); }

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        margin: 15px;
    }
    
    .usage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .usage-ring {
        width: 150px;
        height: 150px;
    }
    
    .usage-number {
        font-size: 32px;
    }
    
    .usage-row {
        flex-direction: column;
    }
    
    .usage-activity {
        width: 100%;
        margin-bottom: 10px;
    }

    .compatibility-details {
        flex-wrap: wrap;
        gap: 15px;
    }

    .detail-circle {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 20px;
    }
    
    .tool-content {
        padding: 20px;
    }
    
    .usage-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-icon {
        margin-bottom: 10px;
    }
    
    .usage-ring {
        width: 120px;
        height: 120px;
    }
    
    .usage-number {
        font-size: 28px;
    }

    .submit-button {
        width: 100%;
        min-width: unset;
    }
}