/* Tool-specific styles only - base styles are in tool-layout.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    padding: 120px 24px 60px;
    text-align: center;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

    max-width: 800px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 40px 24px;
}

.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.input-section,
.output-section {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 32px;
}

.input-section {
    align-self: start;
}

.output-section {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 24px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 8px;
    font-size: 14px;
}

.file-input-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.file-input-display {
    display: flex;
    align-items: center;
    background-color: #374151;
    border: 2px dashed #6b7280;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.file-input-display:hover {
    border-color: #9ca3af;
    background-color: #4b5563;
}

.file-input-text {
    flex: 1;
    color: #9ca3af;
}

.file-input-button {
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-input-button:hover {
    background-color: #5856eb;
}

.text-input {
    width: 100%;
    background-color: #374151;
    border: 1px solid #6b7280;
    border-radius: 8px;
    padding: 12px 16px;
    color: #e5e7eb;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.text-input::placeholder {
    color: #9ca3af;
}

.select-input {
    width: 100%;
    background-color: #374151;
    border: 1px solid #6b7280;
    border-radius: 8px;
    padding: 12px 16px;
    color: #e5e7eb;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.pro-option {
    color: #9ca3af;
    font-style: italic;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.radio-label:hover {
    background-color: #374151;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #6b7280;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #6366f1;
    background-color: #6366f1;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: #374151;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #6b7280;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.pro-feature {
    opacity: 0.6;
    pointer-events: none;
}

.pro-badge,
.pro-badge-small {
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-badge-small {
    font-size: 8px;
    padding: 1px 4px;
}

.input-hint {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.button-primary,
.button-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.button-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    flex: 1;
}

.button-secondary {
    background-color: #374151;
    color: #e5e7eb;
    border-color: #6b7280;
}

.button-spinner {
    display: none;
}

.button-primary.loading .button-text {
    display: none;
}

.button-primary.loading .button-spinner {
    display: block;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #374151;
}

.output-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f3f4f6;
}

.output-actions {
    display: flex;
    gap: 8px;
}

.button-icon {
    width: 40px;
    height: 40px;
    background-color: #374151;
    border: 1px solid #6b7280;
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.button-icon:hover:not(:disabled) {
    background-color: #4b5563;
    border-color: #9ca3af;
    color: #e5e7eb;
}

.button-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.output-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.output-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9ca3af;
    gap: 16px;
}

.output-placeholder p {
    font-size: 14px;
}

.analysis-results {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-summary {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.security-score {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.security-high { color: #10b981; }

.security-medium { color: #f59e0b; }

.security-low { color: #ef4444; }

.security-level {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.security-indicator {
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

.indicator-secure {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.indicator-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.indicator-vulnerable {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.security-details {
    background-color: #374151;
    border-radius: 8px;
    padding: 20px;
}

.details-grid {
    display: grid;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #1f2937;
    border-radius: 6px;
}

.detail-label {
    font-weight: 500;
    font-size: 14px;
}

.detail-value {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.value-secure {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.value-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.value-vulnerable {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.value-neutral {
    background-color: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.permissions-list {
    background-color: #374151;
    border-radius: 8px;
    padding: 20px;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.permission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #1f2937;
    border-radius: 6px;
    font-size: 14px;
}

.permission-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-allowed {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-restricted {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.recommendations {
    background-color: #374151;
    border-radius: 8px;
    padding: 20px;
}

.recommendations h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background-color: #1f2937;
    border-radius: 6px;
    font-size: 14px;
}

.recommendation-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.recommendation-icon.info { color: #3b82f6; }

.recommendation-icon.warning { color: #f59e0b; }

.recommendation-icon.critical { color: #ef4444; }

@media (max-width: 1024px) {
    .tool-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
        padding: 0 16px;
    }
    
        padding: 100px 16px 40px;
    }
    
        font-size: 2rem;
    }
    
        font-size: 1rem;
    }
    
    .tool-main {
        padding: 24px 16px;
    }
    
    .input-section,
    .output-section {
        padding: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
        display: none;
    }
    
    .security-indicators {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .permissions-grid {
        grid-template-columns: 1fr;
    }
}