/* Import Cantarell font (similar to Canva Sans) */
@import url('https://fonts.googleapis.com/css2?family=Cantarell:wght@400;700&display=swap');

/* Global Styles */
:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #555;
    --light-color: #fff;
    --grey-color: #eee;
}

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

body {
    font-family: 'Cantarell', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--light-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
header {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.3rem 0;
    position: relative;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding-bottom: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Home Page */
.ev-image {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 3.5rem;
}

.ev-image img {
    max-width: 100%;
    height: auto;
}

.progress-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Calendar Grid */
.calendar-container {
    margin: 2rem 0;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    grid-gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 322px; /* 7 days * 40px width + 6 * 0.5rem gaps */
    margin-left: auto;
    margin-right: auto;
}

.calendar-header div {
    width: 40px;
    text-align: center;
    font-weight: 500;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 322px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
}

.calendar-day {
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-day.empty {
    border: 1px dashed var(--accent-color);
    background-color: transparent;
    cursor: default;
}

.calendar-day.completed {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.calendar-day:hover:not(.empty) {
    background-color: var(--grey-color);
}

.calendar-day.completed:hover {
    background-color: var(--secondary-color);
}

.view-all-progress {
    text-align: center;
    margin-top: 1.5rem;
}

.view-all-progress a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.view-all-progress a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* About Page */
.about-content {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Subscribe Page */
.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--secondary-color);
    font-size: 1rem;
}

.btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Progress Page */
.year-grid-container {
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.massive-grid {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    position: relative;
    gap: 2rem;
}

.month-label {
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: #333;
    padding-left: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.massive-grid .month-label:first-child {
    margin-top: 0;
}

/* Month grid styles */
.month-grid {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 1.5rem;
}

.week-header {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    grid-gap: 5px;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.week-header span {
    width: 40px;
    text-align: center;
    font-weight: 500;
    font-size: 0.8rem;
}

.month-days {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    grid-gap: 5px;
    justify-content: center;
}

.month-day {
    width: 40px;
    height: 40px;
    background-color: #ebedf0;
    border: 1px solid rgba(27, 31, 35, 0.06);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.month-day.empty {
    border: 1px dashed #ccc;
    background-color: transparent;
    cursor: default;
}

.month-day.completed {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--light-color) !important;
}

.month-day:hover:not(.empty) {
    background-color: var(--grey-color);
}

.month-day.completed:hover {
    background-color: var(--secondary-color) !important;
}

/* Legacy year-day styles (kept for compatibility) */
.year-day {
    width: 18px;  /* Fixed size for all squares */
    height: 18px;
    background-color: #ebedf0;
    border-radius: 2px;
    border: 1px solid rgba(27, 31, 35, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin: 1px;
}

.year-day.completed {
    background-color: #39d353 !important;
    border-color: rgba(27, 31, 35, 0.1) !important;
    box-shadow: 0 0 0 1px rgba(27, 31, 35, 0.1) !important;
}

.year-day:hover {
    opacity: 0.8;
}

.grid-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-box {
    width: 15px;
    height: 15px;
    border-radius: 2px;
    background-color: #ebedf0;
    border: 1px solid rgba(27, 31, 35, 0.06);
    margin-right: 0.5rem;
}

.legend-box.completed {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.legend-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.activity-log-container {
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.activity-log-container h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.progress-list {
    margin-top: 1rem;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--grey-color);
}

.progress-date {
    font-weight: 500;
}

.progress-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background-color: #ebedf0;
    border: 1px solid rgba(27, 31, 35, 0.06);
    margin-right: 0.5rem;
}

.progress-status.completed {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.progress-notes {
    font-style: italic;
    color: var(--secondary-color);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Rabbit Holes Page */
/* Rabbit Holes Grid */
.rabbit-holes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.rabbit-hole-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.rabbit-hole-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    padding: 0.8rem;
    text-align: center;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.rabbit-hole-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.rabbit-hole-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
    width: 100%;
}

.rabbit-hole-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.rabbit-hole-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1), transparent);
    color: white;
    transition: opacity 0.3s;
}

.rabbit-hole-overlay h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.rabbit-hole-overlay p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress bar styles */
.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin-top: 0.5rem;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

/* Rabbit Hole Detail Page */
.rabbit-hole-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rabbit-hole-header {
    margin-bottom: 2rem;
    text-align: center;
}

.rabbit-hole-header h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.rabbit-hole-header .description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.rabbit-hole-content {
    margin-top: 2rem;
}

.rabbit-hole-document {
    width: 100%;
    min-height: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.html-document {
    min-height: 800px; /* Taller for HTML documents */
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.document-container {
    margin-bottom: 1.5rem;
}

.document-download {
    text-align: center;
    margin: 1rem 0 2rem;
}

.rabbit-hole-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-align: center;
    padding: 2rem;
}

.rabbit-hole-placeholder p {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.back-link:hover {
    background-color: var(--secondary-color);
}

/* Admin Rabbit Holes Page */
.rabbit-hole-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rabbit-hole-admin-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: white;
}

.rabbit-hole-admin-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.rabbit-hole-admin-card .description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    height: 4.5rem;
    overflow: hidden;
}

.rabbit-hole-admin-card .status {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.upload-form {
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 1rem;
}

.upload-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.upload-form input[type="file"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

.upload-form .form-help {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.current-image {
    margin: 0.5rem 0 1rem;
}

.image-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    background: #f9f9f9;
    text-align: center;
}

.upload-form button {
    width: 100%;
}

/* Legacy styles - kept for backwards compatibility */
.rabbit-hole {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey-color);
}

.rabbit-hole h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.rabbit-hole p {
    line-height: 1.7;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    .calendar-day {
        width: 35px;
        height: 35px;
    }
    
    .calendar-header div {
        width: 35px;
    }
    
    .calendar-header {
        grid-template-columns: repeat(7, 35px);
        grid-gap: 0.5rem;
        max-width: 287px; /* 7 days * 35px width + 6 * 0.5rem gaps */
    }
    
    .calendar-grid {
        max-width: 287px; /* 7 days * 35px width + 6 * 0.5rem gaps */
    }
    
    /* Month grid responsive styles */
    .week-header {
        grid-template-columns: repeat(7, 35px);
        grid-gap: 3px;
    }
    
    .week-header span {
        width: 35px;
    }
    
    /* Modal responsive styles for mobile */
    .modal-content {
        margin: 0;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .modal-title {
        margin-bottom: 1rem;
    }
    
    .form-group.full-details-container {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .full-details {
        flex: 1;
        overflow-y: auto;
        max-height: none;
    }
    
    .month-days {
        grid-template-columns: repeat(7, 35px);
        grid-gap: 3px;
    }
    
    .month-day {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    /* Massive grid responsive styles */
    .massive-grid {
        padding: 0.5rem;
        gap: 1.5rem;
    }
    
    .year-day {
        width: 15px;
        height: 15px;
        margin: 1px;
    }
    
    .month-label {
        font-size: 0.75rem;
        margin-top: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .month-grid {
        max-width: 290px;
    }
    
    .progress-item {
        flex-direction: column;
    }
    
    .progress-notes {
        margin-top: 0.5rem;
        margin-left: 1.5rem;
    }
    
    .grid-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .calendar-day {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .calendar-header div {
        width: 30px;
        font-size: 0.8rem;
    }
    
    .calendar-header {
        grid-template-columns: repeat(7, 30px);
        grid-gap: 0.3rem;
        max-width: 247px; /* 7 days * 30px width + 6 * 0.3rem gaps */
    }
    
    .calendar-grid {
        max-width: 247px; /* 7 days * 30px width + 6 * 0.3rem gaps */
    }
    
    /* Month grid responsive styles */
    .week-header {
        grid-template-columns: repeat(7, 28px);
        grid-gap: 2px;
    }
    
    .week-header span {
        width: 28px;
        font-size: 0.7rem;
    }
    
    .month-days {
        grid-template-columns: repeat(7, 28px);
        grid-gap: 2px;
    }
    
    .month-day {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .month-grid {
        max-width: 230px;
    }
    
    /* Massive grid responsive styles */
    .massive-grid {
        padding: 0.25rem;
        gap: 0.75rem;
    }
    
    .year-day {
        width: 12px;
        height: 12px;
        margin: 0px;
    }
    
    .month-label {
        font-size: 0.7rem;
        margin-top: 0.5rem;
        margin-bottom: 0.2rem;
    }
    
    /* Responsive document display on mobile */
    .html-document {
        min-height: 500px; /* Shorter for mobile devices */
    }
    
    .document-download {
        text-align: center;
    }
}

/* Modal for adding notes */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--light-color);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--secondary-color);
    width: 90%;
    max-width: 500px;
}

.close {
    color: var(--secondary-color);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

.modal-title {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.modal textarea {
    width: 100%;
    height: 100px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--secondary-color);
    font-family: inherit;
    font-size: 1rem;
}

.notes-summary {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--grey-color);
    border-radius: 4px;
    background-color: var(--grey-color);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

.full-details {
    width: 100%;
    min-height: 150px;
    max-height: 60vh;
    padding: 1rem;
    border: 1px solid var(--grey-color);
    border-radius: 4px;
    background-color: white;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.8;
    overflow-y: auto;
    white-space: pre-line;
}

.full-details-container {
    margin-top: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Admin CSV Editor Styles */
.admin-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.editor-form {
    margin-bottom: 2rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.btn-import {
    background-color: #4CAF50;
}

.btn-subscribers {
    background-color: #9b59b6;
}

.btn-research {
    background-color: #3498db;
}

.btn-logout {
    background-color: #d32f2f;
    margin-left: auto;
}

.editor-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    table-layout: fixed;
}

.data-table th,
.data-table td {
    padding: 0.8rem;
    border: 1px solid var(--grey-color);
    text-align: left;
}

.data-table th {
    background-color: var(--grey-color);
    font-weight: 500;
}

.data-table th:nth-child(1) {
    width: 150px;  /* Increased width for date column */
}

.data-table th:nth-child(2) {
    width: 100px;
}

.data-table th:nth-child(3) {
    width: 200px;
}

.data-table th:nth-child(4) {
    width: auto;
}

.data-table th:nth-child(5) {
    width: 80px;
}

.data-table input[type="text"],
.data-table select,
.data-table textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--grey-color);
    font-family: inherit;
    font-size: 0.9rem;
}

.data-table textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-delete {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-add {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.new-entry-row {
    background-color: rgba(76, 175, 80, 0.1);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

.admin-instructions {
    background-color: var(--grey-color);
    padding: 1rem;
    border-radius: 4px;
}

.admin-instructions h3 {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.admin-instructions ul {
    margin-left: 1.5rem;
}

.admin-instructions li {
    margin-bottom: 0.5rem;
}

/* Admin Login Styles */
.admin-login-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--grey-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-login-form {
    margin-top: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions-center {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Subscription form message styles */
.message-box {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.message-box.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.message-box.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

/* 3D Model Viewer Styles */
.model-container {
    width: 100%;
    height: 500px;
    margin: 2rem 0;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: #efefef;
    --poster-color: transparent;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.update-bar {
    background-color: var(--accent-color);
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.hide {
    display: none;
}

#ar-button {
    background-color: var(--primary-color);
    border-radius: 4px;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

#ar-button:hover {
    background-color: var(--secondary-color);
}

.model-controls {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.model-controls h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.model-controls ul {
    margin-left: 1.5rem;
    line-height: 1.8;
}

@media screen and (max-width: 768px) {
    .model-container {
        height: 400px;
    }
}

@media screen and (max-width: 480px) {
    .model-container {
        height: 300px;
    }
}

/* 3D Model Viewer Error Message */
.error-message {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-message p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.error-message p:last-child {
    font-weight: bold;
    margin-top: 1rem;
}

/* Info Box Styles */
.info-box {
    background-color: #f8f8f8;
    border-left: 4px solid #2196F3;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1rem 0 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.info-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-box code {
    background-color: #e9e9e9;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.info-box .note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}
