body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header a, .nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #ecf0f1;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 10px;
    display: inline-block;
    margin-left: 5px;
}

header a:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
}

header a.active-lang {
    background-color: white;
    color: #2c3e50;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: #2c3e50;
}

.card-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.card-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.card-body::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, white);
}

.btn {
    display: block;
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: auto;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-small {
    display: inline-block;
    background-color: #e67e22;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.3s;
    border: none; 
    cursor: pointer;
}

.btn-small:hover {
    background-color: #d35400;
}

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

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

.btn-warning {
    background-color: #d35400;
    color: white;
}

.btn-warning:hover {
    background-color: #c0392b;
}


/* Login & Admin Styles */
.login-container {
    max-width: 400px;
    margin: 3rem auto;
    padding: 20px;
    width: 100%;
}

.admin-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 20px;
    width: 100%;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-full {
    width: 100%;
}

.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background-color: #2ecc71;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.admin-card {
    padding: 30px;
    text-align: center;
}

.admin-card h2 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 20px;
}

.stats {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: left;
}

.stats p {
    margin: 5px 0;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.desc {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.admin-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: bold;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

/* Detail Page Styles */
.detail-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.activity-detail {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.detail-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.detail-meta {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.detail-hashtag {
    font-size: 1rem;
    color: #2980b9;
    margin-bottom: 20px;
    font-weight: bold;
}

.detail-image-wrapper {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.detail-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.detail-actions {
    border-top: 1px solid #eee;
    padding-top: 30px;
    text-align: center;
}

.detail-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 5px solid #2980b9;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.btn-read-more {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    background-color: white;
    border: 2px solid #2980b9;
    color: #2980b9;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background-color: #2980b9;
    color: white;
}

/* Modal Overlay & Progress Bar */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.progress-container {
    width: 100%;
    background-color: #ecf0f1;
    border-radius: 20px;
    height: 20px;
    margin: 20px 0 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #2ecc71;
    transition: width 0.3s ease;
}

.progress-log {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 10px;
    min-height: 20px;
}

@media (max-width: 600px) {
    .detail-title {
        font-size: 1.5rem;
    }
    .activity-detail {
        padding: 20px;
    }
}
