/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    background: #f4f4f4;
}

/* Sidebar */
.sidebar {
    width: 12%;
    background: #2c3e50;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h1 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.sidebar ul li a:hover {
    background: #34495e;
}

.sidebar ul li a i {
    margin-right: 10px;
}

.sidebar .logout {
    margin-top: auto;
    text-align: center;
}

.sidebar .logout a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.sidebar .logout a:hover {
    background: #e74c3c;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    background: #fff;
    overflow-y: scroll;
}

.main-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-container button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-container button:hover {
    background: #0056b3;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: #f4f4f4;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table tr:hover {
    background: #f1f1f1;
}

.actions {
    display: flex;
    gap: 10px;
}

.actions a {
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
}

.actions .edit {
    background: #007bff;
}

.actions .delete {
    background: #dc3545;
}

.actions a:hover {
    opacity: 0.8;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.popup-content h2 {
    margin-bottom: 20px;
}

.popup-content #cases-summary-details {
    margin-top: 10px;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* View Cases Summary Button */
.view-cases-summary-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-cases-summary-btn:hover {
    background: #0056b3;
}

.popup-content form label {
    display: block;
    margin-bottom: 5px;
}

.popup-content form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.popup-content form button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popup-content form button:hover {
    background: #0056b3;
}


/*Search bar styles*/
/* Search Container */
.search-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#search-input {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    width: 200px;
    transition: width 0.3s ease;
    outline: none;
}

#search-input:focus {
    width: 300px;
    border-color: #007bff;
}

#search-button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #0056b3;
}

/* Refresh Button */
#refresh-button {
    padding: 10px;
    /*background-color: #656275;*/
    background-color: transparent;
    /*color: white;*/
    border: none;
    /*border-radius: 5px;*/
    margin-right: 35px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/*#refresh-button:hover {*/
/*    background-color: #218838;*/
/*}*/

#refresh-button i {
    font-size: 26px;
    color: black;
}

/* Email Form Container */
.email-form-container {
    width: 50%;
    margin-left: 15%;
    margin-right: 15%;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.email-form-container form{
    width:100%;
}

.email-form-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.email-form-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.email-form-container input[type="text"],
.email-form-container textarea,
.email-form-container select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-form-container input[type="text"]:focus,
.email-form-container textarea:focus,
.email-form-container select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

.email-form-container textarea {
    resize: vertical;
    min-height: 150px;
}

.email-form-container button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.email-form-container button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.email-form-container button:active {
    transform: translateY(0);
}

#single-pi-fields {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

#single-pi-fields label {
    color: #555;
}

#single-pi-fields input[type="text"] {
    background: #fff;
}

/* Search Bar Animation */
#pi-search {
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007bff" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 98% center;
    background-size: 18px;
    padding-right: 40px;
}

#pi-search:focus {
    background-position: 95% center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .email-form-container {
        padding: 20px;
    }

    .email-form-container input[type="text"],
    .email-form-container textarea,
    .email-form-container select {
        font-size: 14px;
    }

    .email-form-container button {
        font-size: 14px;
    }
}

/* Close Button */
#close-button {
    padding: 10px 20px;
    background-color:#c2153a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#close-button:hover {
    background-color: #d9254b;
}

#close-button:active {
    transform: translateY(0);
}

/* Chart Container */
.chart-container {
    max-width: 300px; /* Adjust as needed */
    margin: 20px auto; /* Center the chart */
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Add spacing between sections */
}

/* Dashboard Cards */
.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-cards .card {
    flex: 1;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.dashboard-cards .card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.dashboard-cards .card p {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.dashboard-cards .card a {
    text-decoration: none;
    color: #28a745;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quick-actions button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.quick-actions button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.quick-actions button:active {
    transform: translateY(0);
}

/* Recent Activity */
.recent-activity {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    margin-bottom: 15px;
    color: #333;
}

.recent-activity table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.recent-activity table th,
.recent-activity table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.recent-activity table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Back Arrow */
.back-arrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
}

.back-arrow i {
    margin-right: 5px;
}

.back-arrow:hover {
    color: #0056b3;
}

/*Pending updates styles goes here */
/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}


/* Form Styles */
#case-form label {
    display: block;
    margin-top: 10px;
}

#case-form input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#case-form button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #036bf8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#case-form button:hover {
    background-color: #0256c7;
}

#financial-report-form input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#financial-report-form button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #036bf8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#financial-report-form button:hover {
    background-color: #0256c7;
}
/* Analytics Container - Original Style */
        .analytics-container {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .analytics-card {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 20px;
            width: calc(23% - 15px);
            text-align: center;
            flex-grow: 1;
            min-width: 200px;
        }

        .analytics-card h3 {
            font-size: 18px;
            margin-bottom: 10px;
            color: #036bf8;
        }

        .analytics-card p {
            font-size: 24px;
            font-weight: bold;
            color: #333;
        }

        /* Filter Controls - Improved */
        .filter-controls {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            align-items: center;
            flex-wrap: wrap;
            background: #f5f7fa;
            padding: 15px;
            border-radius: 8px;
        }
        
        .filter-controls select {
            padding: 8px 12px;
            border-radius: 5px;
            border: 1px solid #ddd;
            background: #fff;
            min-width: 120px;
        }
        
        .filter-controls button {
            padding: 8px 15px;
            background: #036bf8;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .filter-controls button:hover {
            background: #0254c7;
        }

        /* Table Styles - Improved */
        #financial-report-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        #financial-report-table th {
            background-color: #0256c7;
            color: white;
            padding: 12px;
            text-align: left;
            font-weight: 600;
        }
        
        #financial-report-table td {
            padding: 12px;
            border-bottom: 1px solid #eee;
        }
        
        #financial-report-table tr:hover {
            background-color: #f5f9ff;
        }
        
        #financial-report-table tr:last-child td {
            border-bottom: none;
        }

        /* Form Styles */
        #financial-report-form input {
            width: 100%;
            padding: 8px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        #financial-report-form button {
            margin-top: 20px;
            background: #036bf8;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .analytics-card {
                width: calc(50% - 15px);
            }
            
            .filter-controls {
                flex-direction: column;
                align-items: flex-start;
            }
        }
/* Profile Picture Container */
.profile-picture-container {
    text-align: center;
    margin-bottom: 20px;
}

/* Profile Picture */
.profile-picture {
    width: 300px;
            height: 300px;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: 0 0 20px #1a1542, 0 0 40px #175cde;
            animation: glow-border 1.5s infinite alternate;
}

/* Search Container */
.search-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

#search-input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
    margin-right: 10px;
}

.fa-search {
    color: #0256c7;
    cursor: pointer;
}
