/* styles.css - Custom styles for The Gratitude Portal with Zen Bamboo Garden theme */

/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    background-image: url('../images/bamboo-bg-light.jpg');
    background-attachment: fixed;
    background-size: cover;
}

/* Header and navigation */
.navbar {
    background-color: rgba(38, 70, 45, 0.95) !important;
    border-bottom: 2px solid #4a7c59;
}

.navbar-brand {
    font-family: 'Philosopher', 'Segoe UI', sans-serif;
    font-weight: bold;
    color: #e8f3e0 !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #e8f3e0;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #a5d6a7;
}

/* Cards */
.card {
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
}

.card-header {
    font-weight: bold;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

/* Jumbotron */
.jumbotron {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    border-left: 5px solid #4a7c59;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
}

.btn-primary {
    background-color: #4a7c59;
    border-color: #4a7c59;
}

.btn-primary:hover {
    background-color: #3a6247;
    border-color: #3a6247;
}

.btn-success {
    background-color: #5d9c6f;
    border-color: #5d9c6f;
}

.btn-success:hover {
    background-color: #4d8c5f;
    border-color: #4d8c5f;
}

/* Forms */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

.form-control:focus {
    border-color: #4a7c59;
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
}

/* Appreciation cards */
.appreciation-card {
    transition: transform 0.3s ease;
    border-left: 4px solid #4a7c59;
}

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

/* Resource type badges */
.badge-resource-type {
    background-color: #4a7c59;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Footer */
footer {
    background-color: rgba(38, 70, 45, 0.95);
    color: #e8f3e0;
    border-top: 1px solid #4a7c59;
}

footer a {
    color: #a5d6a7;
}

footer a:hover {
    color: #e8f3e0;
    text-decoration: none;
}

/* Statistics page */
.progress {
    height: 20px;
    border-radius: 10px;
}

.progress-bar {
    background-color: #4a7c59;
}

/* Search results */
.search-result {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.search-result:last-child {
    border-bottom: none;
}

/* Profile page */
.profile-header {
    background-color: rgba(74, 124, 89, 0.9);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 8px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
}

/* Flash messages */
.alert-dismissible {
    position: relative;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
}

/* Admin dashboard */
.admin-card {
    border-left: 4px solid #4a7c59;
}

.admin-card.card-warning {
    border-left-color: #ffc107;
}

.admin-card.card-danger {
    border-left-color: #dc3545;
}

.admin-card.card-success {
    border-left-color: #5d9c6f;
}

/* Zen-inspired elements */
.zen-quote {
    font-family: 'Philosopher', serif;
    font-style: italic;
    color: #4a7c59;
    padding: 20px;
    border-left: 3px solid #4a7c59;
    background-color: rgba(229, 242, 233, 0.7);
    margin: 20px 0;
}

.zen-divider {
    height: 30px;
    background-image: url('../images/bamboo-divider.png');
    background-repeat: no-repeat;
    background-position: center;
    margin: 20px 0;
}

.zen-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Avatar upload */
.avatar-upload {
    position: relative;
    max-width: 205px;
    margin: 0 auto;
}

.avatar-edit {
    position: absolute;
    right: 5px;
    z-index: 1;
    top: 5px;
}

.avatar-edit input {
    display: none;
}

.avatar-edit label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    border-radius: 100%;
    background: #4a7c59;
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-weight: normal;
    transition: all .2s ease-in-out;
    line-height: 34px;
    text-align: center;
    color: white;
}

.avatar-preview {
    width: 192px;
    height: 192px;
    position: relative;
    border-radius: 100%;
    border: 6px solid #f8f8f8;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}

.avatar-preview > div {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3a6247;
}
