/* Modern Theme for Accounting System */

:root {
    --primary-color: #1f3c88;
    --primary-dark: #162c63;
    --secondary-color: #1b7f5f;
    --danger-color: #d64545;
    --warning-color: #d79400;
    --info-color: #2f6ea5;
    --light-bg: #f5f7fb;
    --border-color: #e1e6ef;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --muted-surface: #eef1f7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Override Bootstrap Primary Colors */
.btn-primary {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-dark) !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(31, 60, 136, 0.25);
}

/* Modern Cards */
.card {
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-md) !important;
    border: none !important;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px !important;
    border: 2px solid var(--border-color) !important;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Modern Alerts */
.alert {
    border-radius: var(--border-radius) !important;
    border: none !important;
    box-shadow: var(--shadow-sm);
}

.alert-warning {
    background: #fef5e7 !important;
    color: #dc7609 !important;
    border-right: 4px solid var(--warning-color) !important;
}

.alert-danger {
    background: #fee !important;
    color: #c53030 !important;
    border-right: 4px solid var(--danger-color) !important;
}

/* Bootstrap Icons Support */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css");

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideUp 0.5s ease-out;
}

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

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Profile Image Styles */
.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-preview-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.profile-preview-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 80px;
    box-shadow: var(--shadow-md);
}

.profile-placeholder i {
    line-height: 1;
}

/* Document Attachment Styles */
.attachment-list {
    list-style: none;
    padding: 0;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.attachment-item:hover {
    background: #e8edf2;
    transform: translateX(-5px);
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.attachment-icon.doc {
    background: var(--primary-color);
}

.attachment-icon.img {
    background: var(--secondary-color);
}

.attachment-icon.pdf {
    background: var(--danger-color);
}

.attachment-details h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.attachment-details small {
    color: var(--text-secondary);
}

/* Change History Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: 15px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1;
}

.timeline-content {
    background: var(--light-bg);
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.timeline-content h6 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.timeline-content .timeline-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timeline-content .change-details {
    font-size: 14px;
}

.change-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px;
}

.change-badge.added {
    background: #d1fae5;
    color: #047857;
}

.change-badge.modified {
    background: #fef3c7;
    color: #d97706;
}

.change-badge.deleted {
    background: #fee2e2;
    color: #dc2626;
}
