* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding: 20px;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    overflow: hidden;
}
header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}
header h1 { font-size: 2.2em; margin-bottom: 10px; }
header p { font-size: 1.1em; opacity: .95; }

.content { padding: 40px 30px; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.card {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}
.card:nth-child(2) { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); color: #2c3e50; }
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.card h3 { font-size: 1.5em; margin-bottom: 12px; }
.card p { opacity: .95; line-height: 1.5; }
.card .icon { font-size: 3em; margin-bottom: 15px; }

.manual {
    background: #f9fafc;
    border-left: 5px solid #4facfe;
    padding: 25px 30px;
    border-radius: 10px;
    margin-top: 30px;
}
.manual h2 { color: #2c3e50; margin-bottom: 20px; }
.manual h3 { color: #4facfe; margin: 18px 0 10px; }
.manual ol, .manual ul { padding-left: 25px; line-height: 1.8; }
.manual li { margin-bottom: 8px; }
.manual code {
    background: #eef2f7;
    padding: 2px 8px;
    border-radius: 4px;
    color: #e74c3c;
    font-family: 'Courier New', monospace;
}

.survey-form { max-width: 800px; margin: 0 auto; }
.question-block {
    background: #f9fafc;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-left: 4px solid #4facfe;
}
.question-block h4 { color: #2c3e50; margin-bottom: 15px; font-size: 1.1em; }
.question-block label {
    display: block;
    padding: 10px 15px;
    margin: 6px 0;
    background: #fff;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
}
.question-block label:hover { border-color: #4facfe; background: #eef6ff; }
.question-block input[type="radio"],
.question-block input[type="checkbox"] { margin-right: 10px; }

input[type="text"], input[type="number"], input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 15px;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #4facfe;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    text-decoration: none;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(79,172,254,.4); }
.btn-danger { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); }
.btn-success { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.result-box {
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}
.result-box h2 { color: #2c3e50; margin-bottom: 20px; }
.level {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    margin: 5px 0;
}
.level-high { background: #d4edda; color: #155724; }
.level-mid  { background: #fff3cd; color: #856404; }
.level-low  { background: #f8d7da; color: #721c24; }

.login-form {
    max-width: 450px;
    margin: 60px auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.big-input {
    width: 100%;
    padding: 18px 15px;
    font-size: 1.3em;
    border: 2px solid #e1e5eb;
    border-radius: 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: center;
    transition: border-color 0.3s;
}
.big-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}
.big-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3em;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5eb;
}
th { background: #4facfe; color: #fff; }
tr:hover { background: #f5f9ff; }

.admin-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    header h1 { font-size: 1.5em; }
    .content { padding: 20px; }
}