/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Story Card Styles */
.story-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
}

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

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-card .card-body {
    padding: 20px;
}

.story-card .card-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.story-card .card-text {
    color: #666;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.story-card .card-footer {
    background-color: #f8f9fa;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #777;
}

/* Form Styles */
.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Admin Panel Styles */
.admin-card {
    margin-bottom: 20px;
}

.admin-controls {
    display: flex;
    gap: 10px;
}

/* Loading Spinner */
#loading-spinner {
    margin: 50px auto;
}

/* Image Preview */
.image-preview {
    max-width: 100%;
    max-height: 300px;
    margin-top: 10px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .story-card img {
        height: 150px;
    }
}

/* Rich text editor styles */
.editor-container {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    min-height: 200px;
    padding: 10px;
    margin-bottom: 1rem;
}

.toolbar {
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ced4da;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.toolbar button {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.toolbar button:hover {
    background-color: #e9ecef;
}

.content-area {
    min-height: 150px;
    padding: 10px;
    outline: none;
}

/* Full story page */
.story-full {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.story-full img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.story-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.story-content {
    line-height: 1.6;
}
