* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
}
.header {
    background: #667eea;
    color: white;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav {
    display: flex;
    gap: 20px;
}
.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}
.nav a:hover {
    background: rgba(255,255,255,0.2);
}
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.section h2 {
    margin-bottom: 15px;
    color: #333;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.stat-card h3 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}
.stat-card .value {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}
.domains-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.domain-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.domain-card h3 {
    margin-bottom: 10px;
    color: #333;
}
.domain-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.keyword-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.btn:hover {
    background: #5568d3;
}
.btn-secondary {
    background: #6c757d;
}
.btn-secondary:hover {
    background: #5a6268;
}
.btn-danger {
    background: #dc3545;
}
.btn-danger:hover {
    background: #c82333;
}
.btn-link {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}
.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.success {
    background: #efe;
    color: #3c3;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.form {
    max-width: 600px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}
.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}
.positions-table {
    overflow-x: auto;
    margin-top: 20px;
}
.positions-grid {
    display: grid;
    gap: 1px;
    background: #ddd;
    border: 1px solid #ddd;
}
.positions-header {
    display: grid;
    grid-template-columns: 200px repeat(31, 1fr);
    background: #667eea;
    color: white;
    font-weight: bold;
}
.positions-header > div {
    padding: 10px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.positions-row {
    display: grid;
    grid-template-columns: 200px repeat(31, 1fr);
    background: white;
}
.positions-row:hover {
    background: #f8f9fa;
}
.positions-row > div {
    padding: 8px;
    text-align: center;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.positions-row > div:first-child {
    font-weight: 500;
    text-align: left;
    background: #f8f9fa;
}
.position-value {
    font-weight: bold;
}
.position-value.top10 {
    color: #28a745;
}
.position-value.top30 {
    color: #ffc107;
}
.position-value.top100 {
    color: #fd7e14;
}
.position-value.none {
    color: #dc3545;
}

