:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-color: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo-container img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 0;
    display: block;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav ul li a:hover {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
    padding: 5px;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Tools Section */
.tools-section {
    padding: 40px 0;
    text-align: center;
}

.tools-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.tools-section h1 span {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tool-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    border-radius: 50%;
}

.tool-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

.tool-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* IP Links */
.ip-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.ip-link {
    display: block;
    padding: 10px;
    background-color: #eff6ff;
    border-radius: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ip-link:hover {
    background-color: #dbeafe;
    color: var(--secondary-color);
}

.ip-link.big {
    font-size: 1.1rem;
    padding: 12px;
}

/* Tool Results */
.tool-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    text-align: left;
    min-height: 80px;
    border: 1px solid var(--border-color);
}

/* Loader */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Device Table */
.device-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.device-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.device-table th, .device-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.device-table th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: var(--dark-color);
}

.device-table tr:hover {
    background-color: #f8fafc;
}

.device-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Admin Grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.admin-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.credentials-list {
    margin-top: 15px;
}

.credential-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.credential-item:last-child {
    border-bottom: none;
}

/* WiFi Analyzer */
.wifi-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.wifi-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wifi-select select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: white;
}

.wifi-chart-container {
    margin-top: 30px;
    height: 300px;
    position: relative;
}

.wifi-results {
    margin-top: 20px;
}

/* Security Checker */
.security-controls {
    margin-bottom: 20px;
}

.security-results {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.security-checklist {
    flex: 1;
}

.security-checklist ul {
    list-style: none;
}

.security-checklist li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 30px;
}

.security-checklist li:before {
    content: "⬜";
    position: absolute;
    left: 0;
}

.security-checklist li[data-check="true"]:before {
    content: "✅";
}

.security-checklist li[data-check="false"]:before {
    content: "❌";
}

.security-score {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--success-color) 0%, var(--success-color) 0%, #e2e8f0 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.score-circle span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: #eff6ff;
}

.btn.tool-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive styles in responsive.css */