/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    direction: rtl;
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile-First Responsive Design */
.container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

/* Mobile Detection and Specific Styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-attachment: fixed;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-content {
    text-align: center;
    padding: 0 2rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.title i {
    margin-left: 1rem;
    color: #667eea;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Mobile Header Styles */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .title i {
        margin-left: 0.5rem;
        font-size: 0.9em;
    }
    
    .subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* Navigation Styles */
.nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 0 2rem 2rem;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    color: #495057;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-btn i {
    font-size: 1.2rem;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav {
        margin: 0 0.5rem 1rem;
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        border-radius: 10px;
    }
    
    .nav-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        margin: 0 0.25rem 0.75rem;
        padding: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Main Content Styles */
.main {
    flex: 1;
    padding: 0 2rem;
}

.tool-panel {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.tool-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Mobile Main Content */
@media (max-width: 768px) {
    .main {
        padding: 0 0.5rem;
    }
    
    .tool-panel {
        border-radius: 15px;
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 0 0.25rem;
    }
    
    .tool-panel {
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.tool-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tool-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Mobile Tool Header */
@media (max-width: 768px) {
    .tool-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .tool-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .tool-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .tool-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .tool-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .tool-header p {
        font-size: 0.85rem;
    }
}

.tool-header h2 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.tool-header i {
    margin-left: 0.5rem;
    color: #667eea;
}

/* Calculator Styles */
.calculator {
    max-width: 400px;
    margin: 0 auto;
}

.calculator-display {
    margin-bottom: 1rem;
}

.calculator-display input {
    width: 100%;
    height: 80px;
    font-size: 2rem;
    text-align: left;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 0 1rem;
    background: #f8f9fa;
    direction: ltr;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.calc-btn {
    height: 60px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-btn.number {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.calc-btn.operator {
    background: linear-gradient(135deg, #fff3e0, #ffcc02);
    color: #e65100;
}

.calc-btn.equals {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    grid-row: span 2;
}

.calc-btn.clear {
    background: linear-gradient(135deg, #ffebee, #f44336);
    color: white;
}

.calc-btn.zero {
    grid-column: span 2;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Text Converter Styles */
.text-converter {
    max-width: 800px;
    margin: 0 auto;
}

.input-group, .output-group {
    margin-bottom: 2rem;
}

.input-group label, .output-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.input-group textarea, .output-group textarea {
    width: 100%;
    height: 150px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.input-group textarea:focus, .output-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.converter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.converter-buttons button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.converter-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Color Picker Styles */
.color-picker {
    max-width: 600px;
    margin: 0 auto;
}

.color-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

#color-input {
    width: 100px;
    height: 100px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.color-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.color-codes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-code-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
}

.color-code-item label {
    font-weight: 600;
    min-width: 50px;
}

.color-code-item input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    direction: ltr;
    text-align: left;
}

.color-code-item button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* QR Generator Styles */
.qr-generator {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.generate-btn, .convert-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.generate-btn:hover, .convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.qr-result {
    margin-top: 2rem;
}

#qr-code {
    display: inline-block;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Password Generator Styles */
.password-generator {
    max-width: 700px;
    margin: 0 auto;
}

.password-options {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#password-length {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    appearance: none;
}

#password-length::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.password-result {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#generated-password {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    background: #f8f9fa;
    direction: ltr;
    text-align: left;
}

.password-strength {
    text-align: center;
}

.strength-meter {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* Unit Converter Styles */
.unit-converter {
    max-width: 800px;
    margin: 0 auto;
}

.converter-type {
    margin-bottom: 2rem;
    text-align: center;
}

.converter-type label {
    font-weight: 600;
    margin-left: 1rem;
}

.converter-type select {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
}

.conversion-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.conversion-arrow {
    font-size: 2rem;
    color: #667eea;
}

.conversion-inputs .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.conversion-inputs input, .conversion-inputs select {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
}

/* Footer Styles */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand h3 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.footer-brand p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    color: #667eea;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
}

.footer-links a:hover {
    transform: translateY(-3px);
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    color: #666;
    font-size: 0.85rem;
}

.footer-tech {
    color: #999;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-tech i {
    color: #667eea;
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-brand h3 {
        font-size: 1.1rem;
    }
    
    .footer-brand p {
        font-size: 0.85rem;
    }
    
    .footer-links {
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-links a {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .footer-info {
        order: 3;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .footer-tech {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .footer {
        margin-top: 1.5rem;
        padding: 1rem 0.5rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-brand h3 {
        font-size: 1rem;
    }
    
    .footer-brand p {
        font-size: 0.8rem;
    }
    
    .footer-links {
        gap: 0.75rem;
    }
    
    .footer-links a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .footer-tech {
        font-size: 0.65rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Styles for Analysis Tools */

/* Input sections */
.input-section {
    margin-bottom: 2rem;
}

.url-input-group, .username-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.url-input-group label, .username-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.input-with-button {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.input-with-button input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-with-button input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Mobile Input Styles */
@media (max-width: 768px) {
    .input-section {
        margin-bottom: 1.5rem;
    }
    
    .url-input-group label, .username-input-group label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .input-with-button {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .input-with-button input {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .input-section {
        margin-bottom: 1rem;
    }
    
    .url-input-group label, .username-input-group label {
        font-size: 0.9rem;
    }
    
    .input-with-button input {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

.username-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.username-input-wrapper:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.platform-prefix {
    padding: 1rem;
    background: #667eea;
    color: white;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.username-input-wrapper input {
    border: none;
    background: transparent;
    padding: 1rem;
    font-size: 1rem;
    flex: 1;
}

.username-input-wrapper input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.analyze-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Mobile Button Styles */
@media (max-width: 768px) {
    .analyze-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .analyze-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    font-size: 1.1rem;
}

/* Results Section */
.analysis-results {
    margin-top: 2rem;
}

.result-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid #667eea;
}

.result-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-section h3 i {
    color: #667eea;
}

/* Mobile Result Sections */
@media (max-width: 768px) {
    .result-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
        border-left-width: 4px;
    }
    
    .result-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .result-section {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 10px;
        border-left-width: 3px;
    }
    
    .result-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Website Analysis Specific Styles */
.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.info-item .label {
    font-weight: 600;
    color: #495057;
}

.info-item .value {
    color: #333;
    font-weight: 500;
}

/* SEO Score */
.seo-score {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-text span {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.score-text small {
    font-size: 0.8rem;
    color: #666;
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-label {
    min-width: 100px;
    font-weight: 500;
    color: #495057;
}

.score-bar {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.8s ease;
}

/* Performance Metrics */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metric-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Technical Details */
.tech-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-weight: 500;
    color: #495057;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

/* Social Media Analysis Specific Styles */
.platform-selection {
    margin-bottom: 2rem;
}

.platform-selection h3 {
    margin-bottom: 1rem;
    color: #333;
}

.platform-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.platform-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Mobile Platform Buttons */
@media (max-width: 768px) {
    .platform-buttons {
        gap: 0.75rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-btn {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
        border-radius: 10px;
    }
    
    .platform-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .platform-buttons {
        gap: 0.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .platform-btn span {
        font-size: 0.75rem;
    }
}

.platform-btn i {
    font-size: 1.2rem;
}

/* Profile Overview */
.profile-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Engagement Metrics */
.engagement-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.metric-header i {
    color: #667eea;
}

.metric-card .metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.metric-trend {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
}

/* Content Analysis */
.content-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.posting-frequency, .hashtag-analysis {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.posting-frequency h4, .hashtag-analysis h4 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.hashtag-item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Growth Metrics */
.growth-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.growth-item {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.growth-label {
    font-weight: 500;
    color: #495057;
}

.growth-value {
    font-weight: 600;
    color: #333;
}

/* Recommendations */
.recommendations, .social-recommendations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.recommendation-item .rec-type {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.recommendation-item .rec-text {
    color: #333;
    line-height: 1.5;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .input-with-button {
        flex-direction: column;
    }
    
    .seo-score {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .content-analysis {
        grid-template-columns: 1fr;
    }
    
    .platform-buttons {
        flex-direction: column;
    }
    
    .platform-btn {
        justify-content: center;
    }
}

/* Analysis Options */
.analysis-options {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.analysis-options h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.option-item input[type="checkbox"] {
    accent-color: #667eea;
}

.option-item span {
    color: #333;
    font-weight: 500;
}

.option-item i {
    color: #667eea;
    margin-left: 0.5rem;
}

/* Mobile Analysis Options */
@media (max-width: 768px) {
    .analysis-options {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
    }
    
    .analysis-options h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .option-item {
        padding: 0.875rem;
        border-radius: 6px;
    }
    
    .option-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .analysis-options {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .options-grid {
        gap: 0.5rem;
    }
    
    .option-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .option-item span {
        font-size: 0.85rem;
    }
}

/* Traffic Analysis Styles */
.traffic-metrics {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.traffic-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-container h4 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.top-pages {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.top-pages h4 {
    margin-bottom: 1rem;
    color: #333;
}

.pages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.page-url {
    font-weight: 500;
    color: #333;
}

.page-views {
    color: #667eea;
    font-weight: 600;
}

/* Export Options */
.export-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.export-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pdf-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.csv-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.image-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Advanced Analytics */
.advanced-analytics {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.analytics-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.analytics-section h4 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    font-size: 1.2rem;
}

.demographics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.demo-chart {
    text-align: center;
}

.chart-label {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.content-performance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.performance-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.metric-name {
    font-weight: 600;
    color: #333;
}

.metric-result {
    font-weight: 700;
    color: #667eea;
}

/* Platform-specific colors */
.platform-btn[data-platform="twitter"].active {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.platform-btn[data-platform="instagram"].active {
    background: linear-gradient(135deg, #e1306c, #c13584);
}

.platform-btn[data-platform="facebook"].active {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

.platform-btn[data-platform="linkedin"].active {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.platform-btn[data-platform="youtube"].active {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.platform-btn[data-platform="tiktok"].active {
    background: linear-gradient(135deg, #000000, #333333);
}

.platform-btn[data-platform="snapchat"].active {
    background: linear-gradient(135deg, #fffc00, #ccca00);
    color: #333;
}

.platform-btn[data-platform="pinterest"].active {
    background: linear-gradient(135deg, #bd081c, #8c0613);
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .traffic-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demographics {
        grid-template-columns: 1fr;
    }
    
    .export-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .platform-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .traffic-stats {
        grid-template-columns: 1fr;
    }
    
    .performance-metrics,
    .engagement-metrics {
        grid-template-columns: 1fr;
    }
    
    .tech-details {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        justify-content: space-around;
        gap: 1rem;
    }
}
