/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    background-image: url('../img/background.png');
    background-size: cover;
    background-attachment: fixed;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login page styles */
.login-container {
    max-width: 500px;
    margin: 100px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    object-fit: contain;
    display: block;
}

.login-title {
    color: #006400;
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #006400;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.btn-primary {
    background-color: #ffcc00;
    color: #000;
    width: 100%;
}

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

/* Alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #ffe6e6;
    color: #ff3333;
    border: 1px solid #ffcccc;
}

.alert-success {
    background-color: #e6ffe6;
    color: #006400;
    border: 1px solid #ccffcc;
}

/* Dashboard styles */
.dashboard-header {
    background-color: #006400;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 4px;
}

.dashboard-nav {
    display: flex;
}

.nav-item {
    margin-right: 15px;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
}

.nav-item.active, .nav-item:hover {
    background-color: #004d00;
}

.logout-btn {
    background-color: #006400;
    color: #fff;
    border: 1px solid #fff;
}

.account-summary {
    background-color: #006400;
    color: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.user-name {
    font-size: 18px;
    font-weight: 500;
    margin: 5px 0;
}

.account-number {
    font-size: 14px;
    opacity: 0.8;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

.card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    margin-bottom: 15px;
    color: #006400;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tabs {
    display: flex;
}

.tab {
    padding: 8px 15px;
    cursor: pointer;
    margin-right: 10px;
    border-radius: 4px;
}

.tab.active {
    background-color: #e6ffe6;
    color: #006400;
}

.filter-btn {
    background-color: #006400;
    color: #fff;
}

.blurred-content {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    position: relative;
    opacity: 0.8;
}

.blurred-content:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

/* Chart improvements */
.chart-container {
    margin: 20px 0;
    position: relative;
    height: 250px;
    width: 100%;
}

.chart {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

#accountChart {
    display: block;
    width: 100%;
    height: 100%;
}

.transactions-list {
    list-style: none;
    position: relative;
    min-height: 100px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.transaction-name {
    font-weight: bold;
}

.transaction-date {
    font-size: 12px;
    color: #888;
}

.transaction-amount {
    font-weight: bold;
}

.transaction-amount.credit {
    color: green;
}

.transaction-amount.debit {
    color: red;
}

.menu-card {
    background-color: #ffcc00;
    color: #000;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-card:hover {
    background-color: #e6b800;
}

.savings-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.savings-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.savings-amount {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    color: #006400;
}

.savings-label {
    font-size: 14px;
    color: #888;
}

.savings-name {
    font-size: 14px;
    color: #006400;
}

/* Footer styles */
footer {
    margin-top: 50px;
    background-color: #006400;
    color: #fff;
    padding: 30px;
    border-radius: 4px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.footer-left p, .footer-center p, .footer-right p {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-center h3 {
    margin-bottom: 10px;
}

/* Admin panel styles */
.card-actions {
    margin-bottom: 20px;
}

.financial-fields {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #006400;
}

.financial-fields .form-group:last-child {
    margin-bottom: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #006400;
    color: #fff;
}

.table tr:hover {
    background-color: #f5f5f5;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.edit-btn {
    background-color: #ffcc00;
    color: #000;
    transition: background-color 0.2s;
}

.edit-btn:hover {
    background-color: #e6b800;
}

.delete-btn {
    background-color: #ff3333;
    color: #fff;
    transition: background-color 0.2s;
}

.delete-btn:hover {
    background-color: #e60000;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 100%;
    position: relative;
    animation: slideIn 0.3s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-title {
    margin-bottom: 15px;
    color: #006400;
}

.modal-close {
    background-color: #f2f2f2;
    color: #333;
}

.account-blocked-modal .modal-content {
    background-color: #fff;
    border-top: 5px solid #ff3333;
}

.account-blocked-modal .modal-title {
    color: #ff3333;
    text-align: center;
}

.account-blocked-modal p {
    text-align: center;
    margin-bottom: 20px;
}

.account-blocked-modal .modal-close {
    display: block;
    margin: 0 auto;
}

.account-blocked-message {
    background-color: #ffe6e6;
    color: #ff3333;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #ffcccc;
    font-weight: bold;
}

.chart-fallback {
    width: 100%;
    height: 200px;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    border-radius: 4px;
}

/* Improved form styles for admin panel */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #006400;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 100, 0, 0.1);
}

/* Form buttons */
.modal-content .btn {
    margin-right: 10px;
}

.modal-content .btn-primary {
    width: auto;
    background-color: #ffcc00;
}

.modal-content .modal-close {
    background-color: #f2f2f2;
    color: #333;
}

/* Адаптивні стилі для мобільних пристроїв */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        padding: 10px;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .nav-item {
        margin: 5px;
        font-size: 14px;
        text-align: center;
    }
    
    .logout-btn {
        width: 100%;
        text-align: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-amount {
        font-size: 24px;
    }
    
    .savings-info {
        flex-direction: column;
    }
    
    .savings-card {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .card-header {
        flex-direction: column;
    }
    
    .tabs {
        margin-bottom: 10px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .tab {
        margin: 5px;
        font-size: 14px;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .transaction-amount {
        margin-top: 5px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-left, .footer-center, .footer-right {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .chart-container {
        height: 200px;
    }
} 