/* ============================================================
   Stopi v druge čevlje - stilska datoteka
   ============================================================ */

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

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a3a8c;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Privzeti gradient - če v assets/background.jpg ni slike, se uporabi ta */
    background: linear-gradient(135deg, #ff6fb3 0%, #b388eb 45%, #4a7df0 100%);
    background-image: url('background.jpg'), linear-gradient(135deg, #ff6fb3 0%, #b388eb 45%, #4a7df0 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px 24px 90px;
    position: relative;
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Naslovna stran (page 1) */
.title-page .page-content {
    justify-content: flex-start;
    padding-top: 20px;
}

h1.main-title {
    font-size: clamp(28px, 8vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    color: #1a3a8c;
    text-align: left;
    width: 100%;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

h1.main-title em {
    font-style: normal;
    background: linear-gradient(90deg, #1a3a8c, #ff2d8a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shoes-image {
    width: 100%;
    max-width: 380px;
    margin: 20px auto;
    display: block;
}

.shoes-image img {
    width: 100%;
    height: auto;
    display: block;
}

.start-button {
    margin-top: 25px;
    background: #1a3a8c;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(26, 58, 140, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.start-button:hover, .start-button:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 58, 140, 0.55);
}

/* Vprašanja (page 2 & 3) */
.question-page .page-content {
    justify-content: center;
}

h2.question-text {
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 800;
    color: #1a3a8c;
    margin-bottom: 40px;
    line-height: 1.2;
    text-align: center;
}

.answers {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.answer-btn {
    display: block;
    background: transparent;
    border: none;
    color: #ff2d8a;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.15s ease, color 0.15s ease;
    width: 100%;
    font-family: inherit;
}

.answer-btn:hover, .answer-btn:active {
    transform: scale(1.04);
    color: #d9006e;
}

/* Zaključna stran (page 4) */
.thanks-page h2.thanks-title {
    font-size: clamp(36px, 10vw, 56px);
    font-weight: 900;
    color: #1a3a8c;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.thanks-page p.thanks-text {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
    color: #1a3a8c;
    margin-bottom: 30px;
}

.email-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a8c;
    margin-bottom: 14px;
    display: block;
    letter-spacing: 0.5px;
}

.email-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid white;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    color: #1a3a8c;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.email-input:focus {
    outline: none;
    border-color: #1a3a8c;
    background: white;
}

.submit-button {
    background: #1a3a8c;
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(26, 58, 140, 0.4);
    font-family: inherit;
}

.submit-button:hover, .submit-button:active {
    background: #142c6b;
}

.success-message {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    color: #1a3a8c;
    font-weight: 700;
    text-align: center;
}

.error-message {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.4);
    border-radius: 10px;
    color: #8b1a1a;
    text-align: center;
    font-weight: 600;
}

/* Noga - logotipi */
.page-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    color: #1a3a8c;
    font-weight: 600;
    padding: 0 20px;
}

.page-footer .hashtag {
    margin-bottom: 6px;
}

.page-footer .small {
    font-size: 11px;
    opacity: 0.85;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin: 8px 0;
    display: inline-block;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 10px 0 6px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #1a3a8c;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.social-icon:hover, .social-icon:active {
    transform: translateY(-2px) scale(1.08);
    background: white;
    color: #ff2d8a;
}

/* Mobilna optimizacija */
@media (max-width: 380px) {
    .page { padding: 24px 18px 80px; }
    .answer-btn { font-size: 18px; }
}

@media (min-height: 800px) {
    .title-page .page-content { padding-top: 40px; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body {
    background: #f5f7fa;
    background-image: none;
    color: #2c3e50;
    font-family: -apple-system, system-ui, sans-serif;
}

.admin-nav {
    background: #1a3a8c;
    color: white;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.admin-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.admin-nav-brand {
    font-weight: 700;
    font-size: 16px;
    padding: 14px 0;
}
.admin-nav-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.admin-nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.admin-nav-link:hover { color: white; }
.admin-nav-link.active {
    color: white;
    border-bottom-color: #ff2d8a;
}
.admin-nav-link.logout {
    color: rgba(255,255,255,0.7);
    margin-left: 12px;
}

.admin-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Vprašanja - upravljanje */
.questions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.questions-table th, .questions-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: top;
}
.questions-table th {
    background: #f8f9fa;
    color: #1a3a8c;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.questions-table tr:hover { background: #fafbfc; }
.questions-table .answers-list {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 4px;
}
.questions-table .answers-list span {
    display: inline-block;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 10px;
    margin: 2px 4px 2px 0;
}
.questions-table .actions { white-space: nowrap; }
.questions-table .actions form { display: inline-block; margin: 0 2px; }
.questions-table .actions .admin-btn { padding: 6px 10px; font-size: 12px; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge.active { background: #d4edda; color: #155724; }
.badge.inactive { background: #f8d7da; color: #721c24; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.form-grid label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 13px;
}
.form-grid input[type="text"],
.form-grid textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    -webkit-appearance: none;
}
.form-grid input:focus,
.form-grid textarea:focus { outline: none; border-color: #1a3a8c; }

.form-row-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 700px) {
    .form-row-4 { grid-template-columns: repeat(4, 1fr); }
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.file-input {
    padding: 10px;
    border: 2px dashed #b0c4de;
    border-radius: 8px;
    background: #f8f9fa;
    width: 100%;
    font-size: 14px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header h1 {
    color: #1a3a8c;
    font-size: 24px;
}

.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-btn {
    background: #1a3a8c;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}
.admin-btn:hover { background: #142c6b; }
.admin-btn.secondary { background: #6c757d; }
.admin-btn.secondary:hover { background: #545b62; }
.admin-btn.danger { background: #c0392b; }
.admin-btn.danger:hover { background: #922b21; }

.admin-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-box {
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.stat-box .label { color: #7f8c8d; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-box .value { color: #1a3a8c; font-size: 28px; font-weight: 700; margin-top: 4px; }

.responses-table-wrap { overflow-x: auto; }

.responses-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
}

.responses-table th, .responses-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: top;
}

.responses-table th {
    background: #f8f9fa;
    color: #1a3a8c;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.responses-table tr:hover { background: #f8f9fa; }

.responses-table .q-cell { max-width: 200px; }
.responses-table .q-cell .q { color: #7f8c8d; font-size: 11px; margin-bottom: 3px; }
.responses-table .q-cell .a { color: #1a3a8c; font-weight: 600; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

/* Login stran */
.login-body {
    background: linear-gradient(135deg, #ff6fb3 0%, #b388eb 45%, #4a7df0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: none;
}

.login-card {
    background: white;
    padding: 35px 30px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 380px;
}

.login-card h1 {
    color: #1a3a8c;
    margin-bottom: 22px;
    text-align: center;
    font-size: 22px;
}

.login-card label {
    display: block;
    margin-bottom: 6px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.login-card input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 16px;
    font-family: inherit;
    -webkit-appearance: none;
}

.login-card input:focus {
    outline: none;
    border-color: #1a3a8c;
}

.login-card .submit-button {
    width: 100%;
    margin-top: 4px;
}

.login-error {
    background: #fdedec;
    color: #c0392b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}
