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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s;
}

.logo a:hover {
    color: #357abd;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #4a90e2;
}

.nav-link.admin-link {
    background-color: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-link.admin-link:hover {
    background-color: #c0392b;
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background-color: #f9f9f9;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-top {
    margin-bottom: 2rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-links {
    margin: 1rem 0;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #4a90e2;
}

.footer-separator {
    color: #666;
    margin: 0 0.5rem;
}

.footer-business-info {
    border-top: 1px solid #555;
    padding-top: 2rem;
    margin-top: 2rem;
}

.business-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.business-info-item {
    padding: 1rem;
}

.business-info-title {
    color: #4a90e2;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.business-info-content {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #ccc;
}

.business-info-content p {
    margin: 0.5rem 0;
}

.business-info-content strong {
    color: #fff;
    font-weight: 600;
}

.business-info-link {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s;
}

.business-info-link:hover {
    color: #6ba3e8;
    text-decoration: underline;
}

.language-switcher {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
}

.lang-link {
    color: #4a90e2;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #4a90e2;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    background-color: rgba(74, 144, 226, 0.1);
    font-weight: 500;
}

.lang-link:hover {
    background-color: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
}

.auth-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.auth-form {
    margin-top: 1.5rem;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

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

.alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-error ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: #666;
}

.auth-footer a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

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

/* About Page */
.about-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
    min-height: 60vh;
}

.legal-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
    min-height: 60vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-updated {
    font-size: 1rem;
    color: #666;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.legal-content ol,
.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

.legal-content ul ul,
.legal-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: #333;
    font-weight: 600;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-feature {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-feature h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.about-feature p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.advice-categories {
    margin-top: 2rem;
}

.advice-item {
    margin-top: 1.5rem;
}

.about-how-it-works {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.about-how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.step p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-feature {
        padding: 1.5rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
}

/* Diary Writing Page */
.diary-container {
    padding: 2rem 0;
    min-height: 70vh;
}

.diary-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.message-user {
    background-color: #4a90e2;
    color: white;
    margin-left: auto;
    text-align: right;
}

.message-assistant {
    background-color: #e0e0e0;
    color: #333;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: none;
}

.chat-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.chat-actions {
    text-align: center;
    margin-top: 1rem;
}

.chat-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.chat-actions .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: white;
}

.chat-actions .btn-secondary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.summary-container {
    max-width: 800px;
    margin: 2rem auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.summary-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.summary-content {
    min-height: 200px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

.summary-edit {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.summary-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.summary-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.summary-actions .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: white;
}

.summary-actions .btn-primary {
    background-color: #4a90e2;
    color: white;
}

.summary-actions .btn-primary:hover {
    background-color: #357abd;
    color: white;
}

@media (max-width: 768px) {
    .diary-title {
        font-size: 2rem;
    }
    
    .chat-messages {
        height: 300px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* My Page */
.mypage-container {
    padding: 2rem 0;
    min-height: 70vh;
}

.mypage-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.mypage-content {
    max-width: 900px;
    margin: 0 auto;
}

.mypage-section {
    margin-bottom: 2rem;
}

.mypage-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 0.5rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 150px;
}

.info-value {
    color: #333;
    font-size: 1.1rem;
}

.feature-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 150px;
}

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

.feature-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feature-btn.btn-secondary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.btn-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn-text {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 768px) {
    .mypage-title {
        font-size: 2rem;
    }
    
    .mypage-card {
        padding: 1.5rem;
    }
    
    .feature-buttons {
        grid-template-columns: 1fr;
    }
    
    .info-label {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .info-value {
        font-size: 1rem;
    }
}

/* Diaries List Page */
.diaries-container {
    padding: 2rem 0;
    min-height: 70vh;
}

.diaries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.diaries-title {
    font-size: 2.5rem;
    color: #333;
}

.back-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: #357abd;
    text-decoration: underline;
}

.diaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.diary-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.diary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.diary-date {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
}

.edited-badge {
    background-color: #4a90e2;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.diary-preview {
    flex: 1;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.diary-card-footer {
    margin-top: auto;
}

.view-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
}

.view-btn:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Calendar View */
.calendar-wrapper {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.calendar-month-year {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.calendar-nav-btn {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.calendar-nav-btn:hover {
    background-color: #4a90e2;
    color: white;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.calendar-table thead th {
    background-color: #f5f5f5;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.calendar-table tbody td {
    padding: 0.75rem;
    text-align: center;
    vertical-align: middle;
    height: 60px;
    position: relative;
}

.calendar-day {
    border: 1px solid #e0e0e0;
}

.calendar-day.empty-day {
    background-color: #f9f9f9;
    border: none;
}

.calendar-day.today {
    background-color: #e3f2fd;
}

.day-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #333;
    position: relative;
    border-radius: 6px;
    transition: all 0.3s;
    padding: 0.5rem;
}

.day-link:hover {
    background-color: #4a90e2;
    color: white;
}

.day-link.has-diary {
    font-weight: 600;
}

.day-number {
    display: block;
    font-size: 1rem;
}

.day-number.no-diary {
    color: #999;
}

.diary-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #4a90e2;
    border-radius: 50%;
}

.day-link:hover .diary-indicator {
    background-color: white;
}

.day-link.multiple {
    position: relative;
}

.diary-count {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1;
}

.day-link:hover .diary-count {
    background-color: #4a90e2;
    color: white;
}

@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 1rem;
    }
    
    .calendar-month-year {
        font-size: 1.4rem;
    }
    
    .calendar-table thead th {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .calendar-table tbody td {
        padding: 0.5rem;
        height: 50px;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .diary-indicator {
        width: 5px;
        height: 5px;
    }
}

/* Search Form in Header */
.diaries-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-btn {
    padding: 0.5rem 1.5rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: #357abd;
}

/* Diary Search Page */
.diary-search-container {
    padding: 2rem 0;
    min-height: 70vh;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-title {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}

.search-form-wrapper {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-form-large {
    display: flex;
    gap: 1rem;
}

.search-input-large {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.search-input-large:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-btn-large {
    padding: 1rem 2rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn-large:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-results {
    margin-top: 2rem;
}

.results-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-result-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s;
}

.search-result-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.result-date {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.result-content {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.result-actions {
    text-align: right;
}

.view-btn-small {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.view-btn-small:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.no-results {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-results-message {
    font-size: 1.2rem;
    color: #666;
}

.search-hint {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hint-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .diaries-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .diaries-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .search-form-large {
        flex-direction: column;
    }
    
    .search-btn-large {
        width: 100%;
    }
}

/* Ask Past Page */
.ask-container {
    padding: 2rem 0;
    min-height: 70vh;
}

.ask-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ask-title {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}

.ask-description {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.ask-description p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .ask-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .ask-title {
        font-size: 2rem;
    }
    
    .ask-description {
        padding: 1rem;
    }
    
    .ask-description p {
        font-size: 1rem;
    }
}

/* Diary Detail Page */
.diary-detail-container {
    padding: 2rem 0;
    min-height: 70vh;
}

.diary-detail-header {
    margin-bottom: 1.5rem;
}

.diary-detail-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.diary-detail-meta {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.diary-detail-date {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.diary-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.meta-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.meta-badge.edited {
    background-color: #4a90e2;
    color: white;
}

.meta-badge.original {
    background-color: #e0e0e0;
    color: #666;
}

.meta-date {
    color: #666;
    font-size: 0.9rem;
}

.diary-detail-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
    white-space: pre-wrap;
    margin-bottom: 2rem;
}

.diary-detail-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.diary-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.diary-detail-actions .btn {
    margin: 0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.diary-detail-actions .btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.diary-detail-actions .btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .diaries-title {
        font-size: 2rem;
    }
    
    .diaries-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .diaries-grid {
        grid-template-columns: 1fr;
    }
    
    .diary-detail-card {
        padding: 1.5rem;
    }
    
    .diary-detail-date {
        font-size: 1.5rem;
    }
    
    .diary-meta-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Diary Edit Page */
.diary-edit-container {
    padding: 2rem 0;
    min-height: 70vh;
}

.diary-edit-header {
    margin-bottom: 1.5rem;
}

.diary-edit-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.diary-edit-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.diary-edit-form {
    margin-top: 1.5rem;
}

.diary-content-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 400px;
}

.diary-content-textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.diary-edit-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.diary-edit-actions .btn {
    min-width: 120px;
}

@media (max-width: 768px) {
    .diary-edit-card {
        padding: 1.5rem;
    }
    
    .diary-edit-title {
        font-size: 1.5rem;
    }
    
    .diary-content-textarea {
        min-height: 300px;
    }
    
    .diary-edit-actions {
        flex-direction: column;
    }
    
    .diary-edit-actions .btn {
        width: 100%;
    }
    
    .business-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .business-info-item {
        padding: 0.5rem;
    }
    
    .business-info-content {
        font-size: 0.8rem;
    }
}

