/* Cookie Helper Styles */
:root {
    --primary-color: #0088cc;
    --primary-hover: #006699;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 50px;
}

.progress-step::before {
    content: attr(data-step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-muted);
    line-height: 40px;
    z-index: 2;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.completed::before {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    content: '✓';
}

.progress-step.completed::after {
    background: var(--success-color);
}

.progress-step span {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.progress-step.active span {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-step.completed span {
    color: var(--success-color);
}

/* Main Content */
.content {
    padding: 40px;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.step h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 24px;
}

.step p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Instructions */
.instructions {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.instructions ol {
    margin-left: 20px;
    margin-top: 10px;
}

.instructions li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.instructions code {
    background: rgba(0, 136, 204, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary-color);
}

.instructions kbd {
    background: var(--text-dark);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Form Elements */
.form-group {
    margin: 25px 0;
}

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

.form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 136, 204, 0.3);
}

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

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: space-between;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid #0c5460;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid #155724;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-left: 4px solid #721c24;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #856404;
    color: #856404;
}

/* Cookie Display */
#cookie-display {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

#extraction-result {
    display: none;
}

/* Security Info */
.security-info {
    background: #fff3cd;
    border: 2px solid var(--warning-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.security-info h3 {
    color: #856404;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-info h3::before {
    content: '🔒';
    font-size: 24px;
}

.security-info ul {
    margin-left: 20px;
}

.security-info li {
    margin-bottom: 10px;
    color: #856404;
}

/* Final Step */
.final-step {
    text-align: center;
    padding: 40px 20px;
}

.final-step .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.final-step h2 {
    color: var(--success-color);
    margin-bottom: 20px;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 16px 32px;
    background: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s;
}

.telegram-link:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 8px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 24px;
    }

    .content {
        padding: 20px;
    }

    .progress-bar {
        padding: 20px 10px;
    }

    .progress-step {
        padding-top: 45px;
    }

    .progress-step::before {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }

    .progress-step::after {
        top: 17px;
    }

    .progress-step span {
        font-size: 12px;
    }

    .button-group {
        flex-direction: column-reverse;
    }

    .button-group .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .button-group,
    .btn {
        display: none;
    }
}
