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

html,
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

/* Loading indicator */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #667eea, #764ba2);
}

.loading-progress circle {
    fill: none;
    stroke: #667eea;
    stroke-dasharray: 251px;
    stroke-dashoffset: -251px;
    stroke-width: 3;
    animation: progress 1.5s infinite;
}

@keyframes progress {
    to {
        stroke-dashoffset: 0;
    }
}

.loading-progress-text {
    text-align: center;
    color: #667eea;
    font-weight: 600;
    margin-top: 20px;
}

/* Main layout */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 20px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #333;
    margin-bottom: 15px;
}

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #5568d3;
}

/* Responsive utilities */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== Shared Component Styles ===== */

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

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

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    font-size: 1.1em;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.text-danger {
    color: #c62828;
    font-size: 0.875em;
    margin-top: 5px;
    display: block;
}

/* Auth Pages (Login, Register, Reset Password) */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #667eea;
    font-weight: 600;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 40px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Pricing Section */
.pricing-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-title {
    font-size: 2em;
    margin-bottom: 5px;
}

.pricing-org {
    font-size: 1.1em;
    opacity: 0.85;
    margin-bottom: 25px;
}

.pricing-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pricing-card-header {
    padding: 15px 20px;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card-header.summer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pricing-card-header.winter {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.season-icon {
    font-size: 1.2em;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    color: #333;
}

.pricing-table thead th {
    padding: 12px 15px;
    text-align: center;
    font-size: 0.9em;
    color: #555;
    border-bottom: 2px solid #eee;
    background: #fafafa;
}

.pricing-table thead th:first-child {
    text-align: left;
}

.pricing-table tbody td {
    padding: 14px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table .day-type {
    text-align: left;
    font-weight: 600;
    color: #444;
}

.pricing-table .price {
    font-weight: bold;
    font-size: 1.15em;
    color: #2e7d32;
}

.pricing-note {
    margin-top: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.95em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-note span {
    font-weight: 600;
}

@media (max-width: 768px) {
    .pricing-tables {
        grid-template-columns: 1fr;
    }
}

/* Captcha */
.captcha-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-question {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
    background: white;
    padding: 8px 15px;
    border-radius: 4px;
    border: 2px solid #667eea;
}

.btn-refresh {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
}

.btn-refresh:hover {
    transform: rotate(180deg);
}