/* Base styles for dark theme */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e;  /* Dark background */
    margin: 0;
    padding: 20px;
    color: #f5f5f5;  /* Light text color */
}

h1, h2.total {
    text-align: center;
    color: #ffffff;  /* White text for headings */
}

h1 {
    margin-bottom: 20px;
}

h2 {
    margin-top: 15px;
    margin-bottom: 15px;
}

.hidden {
    display: none;
}

.header a {
    text-decoration: none;
}

.header a h3:hover {
    transform: scale(1.08);
    transition: transform 0.1s;
}

/* Subscription Cards Layout */
#subscriptions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Text styling for subscription details */
.subscription-card {
    background-color: #2e2e2e;  /* Dark card background */
    border: 1px solid #444;  /* Darker border */
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);  /* Subtle shadow */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;  /* Add smooth transition */
}



/* High-resolution icons */
.subscription-card img {
    width: 50px; 
    height: 50px;
    margin-bottom: 10px;
    border-radius: 50%;  /* Optional: make the icon circular */
}

.subscription-card h3 {
    font-size: 26px;
    color: #00ff64;  /* Bright green text */
    margin: 0;
}

.subscription-card p {
    margin: 3px 0;
    color: #bfbfbf;  /* Lighter text for details */
}

.subscription-card p.subitem {
    margin: 1px;
    margin-bottom: 15px;
    color: #bfbfbf;
    font-size: 10px;
}

/* Hover effect with glow */
.subscription-card:hover {
    transform: scale(1.05);  /* Slightly enlarge the card */
    background-color: #3e3e3e;  /* Dark card background */
}

.subscription-card .header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* Space between the icon and text */
}

.subscription-card img {
    width: 40px; /* Reduced size for the icon */
    height: 40px;
    margin-bottom: 0;
    border-radius: 50%; /* Keep circular icons */
}

.subscription-card .header img {
    width: 40px;  /* Adjust the size for sub-item icons */
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.subscription-card h3.price {
    font-size: 28px;
    color: #f5f5f5;
    text-align: left; /* Align price to the left */
    margin-top: 10px;
    margin-bottom: 10px;
}





/* Smaller text for date details */
.subscription-card p.date {
    font-size: 12px;
    color: #bfbfbf;
}

/* Hide the buttons initially and show them on hover */
.subscription-card .actions {
    display: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
    gap: 10px;
}

.subscription-card:hover .actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Font Awesome icons */
.subscription-card .actions a {
    display: inline-block;
    font-size: 18px; /* Adjust the size as needed */
    color: white; /* Default color */
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Edit Icon */
.subscription-card .actions a.edit:hover {
    color: #f4e04d; /* Yellow color for the edit icon */
}

/* Delete Icon */
.subscription-card .actions a.delete:hover {
    color: #ff4d4d; /* Red color for the delete icon */
}

/* Hover effect */
.subscription-card .actions a:hover {
    transform: scale(1.2); /* Slight zoom on hover */
    color: #00cc50; /* Change color on hover */
    cursor: pointer;
}

.subscription-card .actionButton{
    background-color: #3e3e3e;
    padding: 7px;
    margin: 1px;
    box-shadow: none;
    border: 1px solid #2e2e2e;
}

.subscription-card .actionButton:hover {
    background-color: #2e2e2e;
}

.date b {
    color: #ecf0f1;
}

/* Modal styling */
.modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 100; /* Ensures it's on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background */
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Enables vertical scrolling */
    /*padding: 20px;*/
}

#subscriptionFormElement,
#subItemForm{
    background-color: #333; /* Dark background for form */
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px; /* Limits the width of the modal */
    max-height: 90vh; /* Limits the height to 90% of the viewport height */
    overflow-y: auto; /* Scrolls when content overflows */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Box shadow */
}

#description {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #444;  /* Dark input background */
    color: #f5f5f5;  /* Light text color */
    
}

form input, form select, form textarea {
    width: 100%; /* Ensures form fields take the full width */
    box-sizing: border-box; /* Prevents padding from adding to the width */
}

/* Form Styles */
form label {
    display: block;
    margin-bottom: 5px;
    color: #00ff64;  /* Bright green text for labels */
}

form input, form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #444;  /* Dark input background */
    color: #f5f5f5;  /* Light text color */
}

form button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/* Filter Buttons */
#addButton, .addButton {
    background-color: #00cc50;  /* Bright green button */
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 20px auto;
    display: block;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#addButton:hover {
    background-color: #00cc50;  /* Darker green on hover */
}

/* Error Styles */
.error {
    border-color: #e74c3c;  /* Red error border */
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    display: block;
}

/* Filter and Sort Controls */
#filter-sort-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

#filter-sort-controls select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;  /* Dark border */
    background-color: #2e2e2e;  /* Dark background */
    color: #f5f5f5;  /* Light text */
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Responsive design for select elements */
@media only screen and (max-width: 768px) {
    #filter-sort-controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #filter-sort-controls select {
        width: 100%;  /* Make the select elements full width on smaller screens */
    }
}

#filter-sort-controls select:hover {
    background-color: #3a3a3a;  /* Slightly lighter on hover */
}

/* Export Buttons */
#export-buttons,
.export-buttons{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#export-buttons button,
.export-buttons button {
    background-color: #00cc50;  /* Bright green for export buttons */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#export-buttons button:hover,
.export-buttons button:hover{
    background-color: #00b246;  /* Darker green on hover */
}


/* Container for managing categories and payment methods */
.manage-container {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-bottom: 40px;
}

.manage-section {
    background-color: #2e2e2e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    width: 40%;
}


form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #444;
    color: #f5f5f5;
}

form button {
    background-color: #00cc50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 1px;
}



form button:hover {
    background-color: #00b246;
}

a.manage-delete {
    margin-left: 2px;
    color: gray;
}
