/* CSS Variables */
:root {
    --primary: #2196f3;
    --primary-dark: #1976d2;
    --primary-light: #64b5f6;
    --secondary: #f5f5f5;
    --white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    display: flex;
    min-height: 100vh;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
    z-index: 999;
}

.sidebar-nav {
    padding: 2rem 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-item:hover {
    background: var(--secondary);
    border-left-color: var(--primary-light);
}

.sidebar-item.active {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: var(--primary);
    color: var(--primary-dark);
}

.sidebar-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 300px;
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

/* Tool Sections */
.tool-section {
    display: none;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.tool-section.active {
    display: block;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Forms */
.tool-form {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Character Counters */
.char-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Results Section */
.results-section {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.results-section h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--secondary);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.result-header i {
    font-size: 1.5rem;
}

.result-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.result-item .value {
    font-weight: bold;
    color: var(--text-primary);
}

.result-item .status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status.success {
    background: #d4edda;
    color: #155724;
}

.status.warning {
    background: #fff3cd;
    color: #856404;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
}

.result-item .recommendation {
    color: var(--text-secondary);
    font-style: italic;
}

/* Keyword Density Styles */
.keyword-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.keyword-stats .stat-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.keyword-stats .stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.keyword-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.density-chart {
    margin: 2rem 0;
}

.chart-bar {
    width: 100%;
    height: 30px;
    background: var(--secondary);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    width: 0%;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.density-recommendation {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.density-recommendation h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Word Counter Styles */
.word-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.reading-speed-options {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.reading-speed-options h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.speed-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.speed-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.speed-option:hover {
    background: var(--white);
}

.speed-option input[type="radio"] {
    accent-color: var(--primary);
}

/* Redirect Checker Styles */
.redirect-result-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.redirect-result-item.success {
    border-left-color: var(--success);
}

.redirect-result-item.redirect {
    border-left-color: var(--warning);
}

.redirect-result-item.error {
    border-left-color: var(--error);
}

.redirect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.redirect-url {
    font-weight: bold;
    color: var(--text-primary);
    word-break: break-all;
}

.redirect-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.redirect-status.success {
    background: #d4edda;
    color: #155724;
}

.redirect-status.redirect {
    background: #fff3cd;
    color: #856404;
}

.redirect-status.error {
    background: #f8d7da;
    color: #721c24;
}

.redirect-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    font-size: 0.9rem;
}

.redirect-detail {
    display: flex;
    justify-content: space-between;
}

.redirect-detail-label {
    color: var(--text-secondary);
}

.redirect-detail-value {
    font-weight: bold;
    color: var(--text-primary);
}

.redirect-chain {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.redirect-chain h5 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.redirect-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.redirect-step:last-child {
    border-bottom: none;
}

.redirect-step-number {
    background: var(--primary);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.redirect-step-url {
    flex: 1;
    color: var(--text-primary);
}

.redirect-step-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.redirect-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.redirect-actions .btn-secondary {
    min-width: 150px;
}

/* XML Sitemap Styles */
.sitemap-preview {
    background: var(--secondary);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.sitemap-preview pre {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.sitemap-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sitemap-actions .btn-secondary {
    min-width: 150px;
}

/* Views & Analytics Styles */
.analytics-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.country-stats {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.country-stats h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.country-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.country-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.country-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.country-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.country-flag {
    font-size: 1.5rem;
}

.country-name {
    font-weight: 600;
    color: var(--text-primary);
}

.country-count {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.no-data {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Notification System */
#notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--error);
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

.notification.info {
    border-left: 4px solid var(--primary);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification.success .notification-content i {
    color: var(--success);
}

.notification.error .notification-content i {
    color: var(--error);
}

.notification.warning .notification-content i {
    color: var(--warning);
}

.notification.info .notification-content i {
    color: var(--primary);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: var(--secondary);
    color: var(--text-primary);
}

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

/* Broken Link Checker Styles */
.link-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.link-stats .stat-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.link-stats .stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.link-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.link-stats .stat-value.success {
    color: #28a745;
}

.link-stats .stat-value.warning {
    color: #ffc107;
}

.link-stats .stat-value.error {
    color: #dc3545;
}

.link-results-list {
    margin-bottom: 2rem;
}

.link-result-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.link-result-item.success {
    border-left-color: #28a745;
}

.link-result-item.warning {
    border-left-color: #ffc107;
}

.link-result-item.error {
    border-left-color: #dc3545;
}

.link-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.link-url {
    font-weight: bold;
    color: var(--text-primary);
    word-break: break-all;
}

.link-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.link-status.success {
    background: #d4edda;
    color: #155724;
}

.link-status.warning {
    background: #fff3cd;
    color: #856404;
}

.link-status.error {
    background: #f8d7da;
    color: #721c24;
}

.link-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    font-size: 0.9rem;
}

.link-detail-item {
    display: flex;
    justify-content: space-between;
}

.link-detail-label {
    color: var(--text-secondary);
}

.link-detail-value {
    font-weight: bold;
    color: var(--text-primary);
}

.link-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.link-actions .btn-secondary {
    min-width: 150px;
}

/* Mass Robots.txt Viewer Styles */
.robots-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.robots-stats .stat-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.robots-stats .stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.robots-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.robots-stats .stat-value.success {
    color: #28a745;
}

.robots-stats .stat-value.warning {
    color: #ffc107;
}

.robots-stats .stat-value.error {
    color: #dc3545;
}

.robots-results-list {
    margin-bottom: 2rem;
}

.robots-result-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.robots-result-item.success {
    border-left-color: #28a745;
}

.robots-result-item.warning {
    border-left-color: #ffc107;
}

.robots-result-item.error {
    border-left-color: #dc3545;
}

.robots-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.robots-url {
    font-weight: bold;
    color: var(--text-primary);
    word-break: break-all;
}

.robots-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.robots-status.success {
    background: #d4edda;
    color: #155724;
}

.robots-status.warning {
    background: #fff3cd;
    color: #856404;
}

.robots-status.error {
    background: #f8d7da;
    color: #721c24;
}

.robots-content {
    background: var(--secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.robots-content.empty {
    color: var(--text-secondary);
    font-style: italic;
}

.robots-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.robots-actions .btn-secondary {
    min-width: 150px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 80px;
        left: -100%;
        transition: 0.3s;
        z-index: 998;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .word-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .keyword-stats {
        grid-template-columns: 1fr;
    }
    
    .analytics-stats {
        grid-template-columns: 1fr;
    }
    
    .speed-options {
        flex-direction: column;
    }
    
    .redirect-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .redirect-details {
        grid-template-columns: 1fr;
    }
    
    .redirect-actions {
        flex-direction: column;
    }
    
    .redirect-actions .btn-secondary {
        width: 100%;
    }
    
    .sitemap-actions {
        flex-direction: column;
    }
    
    .sitemap-actions .btn-secondary {
        width: 100%;
    }
    
    .link-stats {
        grid-template-columns: 1fr;
    }
    
    .link-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .link-details {
        grid-template-columns: 1fr;
    }
    
    .link-actions {
        flex-direction: column;
    }
    
    .link-actions .btn-secondary {
        width: 100%;
    }
    
    .robots-stats {
        grid-template-columns: 1fr;
    }
    
    .robots-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .robots-actions {
        flex-direction: column;
    }
    
    .robots-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 1rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .nav-brand i {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .tool-section {
        padding: 1rem;
    }
    
    .tool-header h2 {
        font-size: 1.5rem;
    }
    
    .word-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .notification {
        min-width: 250px;
        right: 10px;
    }
}
