/* Custom Styles for Jurnal Trading Saham */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Stat Box */
.stat-box {
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Jurnal Card */
.jurnal-card {
    border-left: 4px solid #ccc;
    transition: all 0.3s ease;
}

.jurnal-card.profit {
    border-left-color: var(--success-color);
}

.jurnal-card.loss {
    border-left-color: var(--danger-color);
}

.jurnal-card.break-even {
    border-left-color: var(--warning-color);
}

.jurnal-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Badge Styles */
.badge-hasil {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animation for new entries */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jurnal-card {
    animation: slideIn 0.4s ease-out;
}

/* Empty State */
#emptyState {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Statistik Cards */
.card-body i {
    transition: transform 0.3s ease;
}

.card:hover .card-body i {
    transform: scale(1.1);
}

/* Top Saham Badges */
#topSaham .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Footer */
footer {
    margin-top: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Alert Success */
.alert-success-custom {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* Delete Button */
.btn-delete {
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background-color: var(--danger-color);
    color: white;
    transform: scale(1.05);
}

/* Quill Editor Styling */
.ql-container {
    font-size: 14px;
}

.ql-editor {
    min-height: 150px;
}

/* Quill content when displayed */
.ql-editor p,
.jurnal-card p,
.modal-body p {
    word-wrap: break-word;
}

.jurnal-card img,
.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
}

/* Quill Snow theme adjustments */
.ql-snow .ql-picker {
    font-size: 14px;
}

.ql-toolbar.ql-snow {
    border-radius: 4px 4px 0 0;
    background-color: #f8f9fa;
}

.ql-container.ql-snow {
    border-radius: 0 0 4px 4px;
}
