/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F5FFFF;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-bottom: 15px;
}

p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    padding: 20px;
    flex: 1;
}

/* Header styles */
.main-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
}

.app-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info i {
    margin-right: 10px;
}

.login-link {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #fff;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.login-link:hover {
    background-color: #fff;
    color: #2c3e50;
}

/* Content Header */
.content-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    background-color: #F5FFFF;
    color: #2c3e50;
    text-align: center;
    padding: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Button styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

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

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

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Form elements */
input,
select,
textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding: 20px 0;
    list-style-type: none;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 61px;
    height: 100%;
    width: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.timeline > .timeline-event {
    position: relative;
    margin-bottom: 30px;
    padding-left: 90px;
}

.timeline-event::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 54px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #95a5a6;
    z-index: 3;
}

.timeline-event:first-child::before {
    background-color: #2ecc71;
}

.timeline-event:nth-child(2)::before {
    background-color: #3498db;
}

.timeline-event:hover::before {
    box-shadow: 0 0 0 2px #F5FFFF;
}

.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.event-icon {
    font-size: 16px;
    margin-right: 10px;
    color: #34495e;
}

.event-title {
    margin: 0;
    font-size: 18px;
    color: #34495e;
}

.event-details {
    margin-left: 0;
}

.event-detail {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.time {
    font-weight: bold;
    color: #7f8c8d;
}

.edit-type, .delete-icon {
    font-size: 0.8em;
    margin-left: 10px;
    color: #7f8c8d;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    cursor: pointer;
}

.edit-type:hover, .delete-icon:hover {
    color: #34495e;
}

.timeline-event:hover .edit-type,
.timeline-event:hover .delete-icon {
    opacity: 1;
    pointer-events: auto;
}

.delete-icon {
    color: #e74c3c;
}

.delete-icon:hover {
    color: #c0392b;
}

/* Responsive styles */
@media (max-width: 600px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info {
        margin-top: 10px;
    }
}

/* Footer styles */
.main-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #3498db;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        margin-top: 15px;
    }
}

/* Utility classes */
.hidden {
    display: none;
}

/* Currency totals styles */
.currency-totals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.currency-total {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.currency-label {
    font-weight: bold;
    margin-right: 10px;
    color: #34495e;
}

.currency-amount {
    font-family: monospace;
    font-size: 1.1em;
    color: #2ecc71;
}

/* Popup styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    position: relative;
    z-index: 1001;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
}

.popup-content h2 {
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.popup-buttons {
    margin-top: 20px;
}

.popup-buttons .btn {
    margin: 0 10px;
}

/* Public page styles */
.welcome-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.welcome-content h2 {
    margin-top: 30px;
    color: #2c3e50;
}

.welcome-content ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.welcome-content li {
    margin-bottom: 10px;
    font-size: 16px;
}

.cta-button {
    margin-top: 30px;
}

.cta-button .btn-primary {
    font-size: 18px;
    padding: 12px 24px;
}

.file-icon {
    margin-left: 10px;
    color: #007bff;
    text-decoration: none;
}

.file-icon:hover {
    color: #0056b3;
}

/* Alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
