/* Account Page CSS - Single Quiz Panel - Mobile First */

@font-face {
    font-family: 'DelaGothicOne';
    src: url('ZTChintzy-Heavy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary-color: #C7495E;
    --primary-light: #E88097;
    --primary-dark: #963041;
    --bg-color: #FFF5F7;
    --text-color: #333;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --primary-brown: #2F160D;
    --primary-gold: #EECE6B;
    --bg-white-semi: rgba(255, 255, 255, 0.95);
    --shadow-light: rgba(0, 0, 0, 0.1);
}

/* Navbar */
.account-header {
    display: block;
    background: var(--bg-white-semi);
    padding: 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1003;
}

.account-header-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    padding: 0.8rem 1.5rem;
}

.account-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.account-header-logo img {
    height: 40px;
    width: auto;
}

.account-header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-user-email {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #2F160D;
    font-weight: 500;
}

.account-logout-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #2F160D;
    border: 1.5px solid #D4C3B2;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.account-logout-btn:hover {
    background: #F9F0E7;
    border-color: #2F160D;
}

/* Responsywność navbar */
@media (max-width: 768px) {
    .account-header-content {
        padding: 0.8rem 1rem;
    }
    
    .account-user-email {
        font-size: 0.8rem;
    }
    
    .account-logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .account-header-user {
        gap: 0.5rem;
    }
    
    .account-user-email {
        display: none; /* Ukryj email na bardzo małych ekranach */
    }
}


/* Notyfikacja o braku dostępu */
.access-notification {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 500px;
    width: 90%;
}

.access-notification.show {
    top: 20px;
}

.notification-content {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(199, 73, 94, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.notification-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s;
}

.notification-link:hover {
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(199, 73, 94, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(199, 73, 94, 0.6);
    }
}

.notification-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: shake 3s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.notification-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.notification-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .notification-content {
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .notification-icon {
        font-size: 2rem;
    }
    
    .notification-text h3 {
        font-size: 1rem;
    }
    
    .notification-text p {
        font-size: 0.85rem;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* === LOGIN SCREEN === */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.logo p {
    color: #666;
    font-size: 1rem;
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

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

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: black;
}

.error-message {
    background: #FFEBEE;
    color: var(--error-color);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.success-message {
    background: #E8F5E9;
    color: var(--success-color);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.btn-secondary {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary,
.btn-logout {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    width: 100%;
    background: #F8BEB3;
    color: black;
}

.btn-primary:hover {
    background: #F8BEB3;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* === DASHBOARD SCREEN === */
.dashboard-header {
    background: white;
    box-shadow: var(--shadow);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-content h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-account {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border-radius: 50px;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.header-name {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.header-email {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.2;
}

.btn-logout {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    white-space: nowrap;
}

.btn-logout:hover {
    background: var(--bg-color);
}

.dashboard-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Configurator Content */
.configurator-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    background: white;
    min-height: 100vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.configurator-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.welcome-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #2F160D;
    margin-bottom: 0.5rem;
}

.configurator-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #2F160D;
    margin-bottom: 0.5rem;
}

.order-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #2F160D;
    margin-bottom: 1rem;
}

.configurator-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #2F160D;
    line-height: 1.6;
    margin-top: 1rem;
}

.configurator-description a {
    font-weight: bold;
    color: #2F160D;
    text-decoration: none;
}

.configurator-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Link do opublikowanego quizu */
.quiz-link {
    display: block;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    text-decoration: underline;
    transition: color 0.2s ease;
    margin-top: 10px;
}

.quiz-link:hover {
    color: #2F160D;
}

.config-card {
    background: white;
    border: 1px solid #D4C3B2;
    border-radius: 10px;
    padding: 1.5rem;
    padding-top: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
}

.config-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.config-card:active {
    transform: scale(0.98);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #EECE6B;
    color: #2F160D;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.card-content {
    flex: 1;
    padding-left: 0;
    padding-right: 1rem;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
}

.card-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.card-check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2F160D;
    line-height: 1.4;
    margin: 0;
}

.card-status-banner {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #A0EDB9;
    color: #2F160D;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}


.card-status-ready {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
}

.card-deadline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.card-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    color: #2F160D;
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1.4;
    z-index: 10;
}

.card-arrow.expanded {
    transform: rotate(90deg);
}

/* Rozwijane szczegóły karty */
.card-details {
    margin-top: 1rem;
    padding-top: 1rem;
    animation: slideDown 0.3s ease;
    overflow: hidden;
    word-wrap: break-word;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.detail-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.1rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    align-items: flex-start;
    flex-wrap: nowrap; /* Label i value zawsze w jednej linii */
    min-width: 0;
}

.detail-label {
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap; /* Label zawsze w jednej linii */
}

.detail-value {
    color: #2F160D;
    font-weight: 600;
    text-align: left;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word; /* Szybsze łamanie długich słów */
}

/* Email i adres szybciej się dzielą */
#detailEmail,
#detailAddress {
    word-break: break-all; /* Łamie nawet w środku słowa */
    overflow-wrap: anywhere;
}


/* Wiersz z obrazkiem wzoru */
.detail-row-with-image {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.detail-design-image {
    width: 80px;
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
}

.detail-text-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.detail-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2F160D;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

/* Loading & Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Payment Pending Message */
.payment-pending-message {
    background: #9E9E9E;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.payment-pending-message p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

/* Disabled Panel */
#quizPanel.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.tab {
    flex: 1;
    padding: 0.8rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.tab:hover:not(.active) {
    background: var(--bg-color);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Info Card */
.info-card,
.questions-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-card h3,
.questions-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

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

.info-item label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.design-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.info-value a:hover {
    text-decoration: underline;
}

.btn-copy,
.btn-toggle-password {
    background: var(--bg-color);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.btn-copy:hover,
.btn-toggle-password:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.password-field {
    font-family: monospace;
}

/* Questions */
.question-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
}

.question-header {
    margin-bottom: 1rem;
}

.question-header h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.question-input,
.answer-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.question-input:focus,
.answer-input:focus {
    outline: none;
    border-color: black;
}

.answers-group {
    margin-top: 1rem;
}

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

.answer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.answer-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 25px;
}

.answer-input {
    flex: 1;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    cursor: pointer;
}

/* Metadata Alert */
.metadata-alert {
    margin-bottom: 1.5rem;
}

.alert-content {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-text h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.alert-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.alert-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Frozen Badge */
.frozen-badge {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--success-color), #388E3C);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-freeze {
    background: linear-gradient(135deg, var(--success-color), #388E3C);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-freeze:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-freeze:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(199, 73, 94, 0.1);
}

select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(199, 73, 94, 0.1);
}

/* Responsywność */
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .header-content h1 {
        font-size: 1.2rem;
        flex: 1 1 100%;
    }

    .header-right {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .header-account {
        padding: 0.4rem 0.8rem;
    }

    .header-info {
        display: none;
    }

    .header-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .btn-logout {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .answer-item {
        flex-wrap: wrap;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
    }
}

/* Dialog płatności */
.payment-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.payment-dialog-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #F5F5F5;
}

.payment-dialog-header h2 {
    color: #2F160D;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin: 0;
}

.payment-dialog-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.payment-dialog-close:hover {
    background: #F8F8F8;
    color: #2F160D;
}

.payment-dialog-body {
    padding: 1.5rem;
}

/* Bank Details - używa tych samych stylów co order-confirmation */
.payment-dialog-body .bank-details {
    background: white;
}

.payment-dialog-body .bank-details-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2F160D;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.payment-dialog-body .bank-detail-row {
    padding: 8px 0;
    border-bottom: 1px solid #F5F5F5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-dialog-body .bank-detail-row:last-child {
    border-bottom: none;
}

.payment-dialog-body .bank-label {
    font-size: 0.9rem;
    color: #2F160D;
    font-family: 'Montserrat', sans-serif;
}

.payment-dialog-body .copy-row {
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 6px;
}

.payment-dialog-body .copy-row:hover {
    background: #F8F8F8;
}

.payment-dialog-body .copy-icon {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.payment-dialog-body .copy-icon:hover {
    color: #2F160D;
}

.payment-dialog-body .copy-icon svg {
    width: 16px;
    height: 16px;
}

.payment-dialog-body .copy-icon.copied {
    color: #4CAF50;
}

.payment-dialog-body .copy-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width: 768px) {
    .payment-dialog-content {
        max-width: 100%;
        margin: 1rem;
    }
    
    .payment-dialog-header {
        padding: 1rem;
    }
    
    .payment-dialog-header h2 {
        font-size: 1.1rem;
    }
    
    .payment-dialog-body {
        padding: 1rem;
    }
}

/* Info box styles (jak w checkout) */
.package-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #F9F0E7;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #2F160D;
    line-height: 1.5;
    width: 100%;
    margin-top: 1rem;
}

.note-icon {
    color: #2F160D;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-icon {
    max-width: 20px;
    margin-top: -2px;
}

/* Sekcja kontaktowa */
.contact-section {
    max-width: 800px;
    margin: 3rem auto 2rem;
    text-align: left;
}

.contact-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #2F160D;
    line-height: 1.6;
}

.contact-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-section {
        margin: 2rem auto 1.5rem;
    }
    
    .contact-section p {
        font-size: 0.85rem;
    }
}
