Skip to content

Commit

Permalink
updation
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashiShekharDixit committed Nov 19, 2024
1 parent 0dbce52 commit 575e054
Showing 1 changed file with 112 additions and 97 deletions.
209 changes: 112 additions & 97 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* Root Variables for Theme */
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
Expand All @@ -9,6 +10,7 @@
--accent-color: #e74c3c;
}

/* Global Reset */
* {
margin: 0;
padding: 0;
Expand All @@ -20,167 +22,180 @@ body {
background: linear-gradient(135deg, #f6f8f9 0%, #e5ebee 100%);
color: var(--text-primary);
line-height: 1.6;
padding: 20px;
}

.dashboard {
max-width: 1200px;
margin: 30px auto;
padding: 30px;
background-color: white;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
border-radius: 15px;
position: relative;
overflow: hidden;
h1, h2 {
text-align: center;
margin-bottom: 20px;
color: var(--primary-color);
}

.dashboard::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
.dashboard {
max-width: 1200px;
margin: 0 auto;
background-color: var(--background-color);
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Financial Summary Cards */
.financial-summary {
display: flex;
flex-wrap: wrap; /* Enables wrapping */
justify-content: space-between;
gap: 15px;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 30px;
perspective: 1000px;
}

.summary-card {
flex: 1;
min-width: 220px; /* Minimum width to maintain readability */
max-width: 31%; /* Prevents cards from growing too wide */
background-color: var(--card-background);
border-radius: 12px;
padding: 20px;
padding: 15px 20px;
border-radius: 8px;
text-align: center;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
transition: all 0.4s ease;
position: relative;
overflow: hidden;
transform-style: preserve-3d;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}

.summary-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.summary-card h3 {
font-size: 1rem;
color: var(--text-secondary);
margin-bottom: 10px;
text-transform: uppercase;
}

.summary-card p {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}

/* Add Transaction Form */
.add-form {
display: flex;
flex-wrap: wrap; /* Ensures wrapping on smaller screens */
flex-wrap: wrap;
gap: 10px;
margin-bottom: 20px;
background-color: var(--background-color);
margin-bottom: 30px;
background-color: var(--card-background);
padding: 20px;
border-radius: 12px;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.add-form input,
.add-form input,
.add-form select {
flex: 1;
padding: 12px;
border: 2px solid transparent;
border-radius: 8px;
background-color: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
min-width: 150px; /* Prevents input fields from becoming too small */
border: 1px solid var(--border-color);
border-radius: 6px;
background: white;
font-size: 1rem;
}

.add-form button {
flex: 1;
padding: 12px 20px;
min-width: 150px;
border: none;
border-radius: 6px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border: none;
border-radius: 8px;
font-size: 1rem;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
transition: all 0.3s ease;
}

.add-form button:hover {
background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.transactions-table,
.customer-table {
/* Tables Styling */
.transactions-table, .customer-table {
width: 100%;
border-radius: 12px;
border-collapse: collapse;
margin-bottom: 30px;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.transactions-table th,
.customer-table th {
background: var(--primary-color);
.transactions-table th, .customer-table th {
background-color: var(--primary-color);
color: white;
padding: 12px;
text-align: left;
font-size: 1.1rem;
padding: 12px;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
}

.transactions-table td,
.customer-table td {
.transactions-table td, .customer-table td {
padding: 12px;
text-align: left;
font-size: 1rem;
background-color: #fafafa;
font-size: 0.9rem;
color: var(--text-primary);
background-color: var(--background-color);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
.summary-card {
max-width: 48%; /* Adjust card size on medium screens */
}
.transactions-table tr:nth-child(even) td, .customer-table tr:nth-child(even) td {
background-color: #f0f0f0;
}

.add-form {
flex-direction: column; /* Stack inputs vertically */
}
.transactions-table tr:hover, .customer-table tr:hover {
background-color: var(--accent-color);
color: white;
transition: all 0.3s ease;
}

.add-form input,
.add-form select,
.add-form button {
flex: unset;
width: 100%; /* Inputs take full width */
}
/* Customer Selector */
.customer-selector {
margin-bottom: 20px;
text-align: center;
}

.customer-selector select {
padding: 10px;
font-size: 1rem;
border-radius: 6px;
border: 1px solid var(--border-color);
background: white;
width: 250px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
.financial-summary {
flex-direction: column; /* Stack cards vertically */
flex-direction: column;
}

.summary-card {
max-width: 100%; /* Cards take full width */
margin-bottom: 15px; /* Add space between stacked cards */
width: 100%;
margin-bottom: 10px;
}

.transactions-table th,
.transactions-table td,
.customer-table th,
.customer-table td {
font-size: 0.9rem; /* Reduce text size for smaller screens */
.add-form {
flex-direction: column;
}
}

@media screen and (max-width: 480px) {
.dashboard {
padding: 20px;
.add-form input,
.add-form select,
.add-form button {
width: 100%;
}

.add-form input,
.add-form select,
.add-form button {
padding: 10px;
font-size: 0.9rem; /* Adjust font size for smaller screens */
.transactions-table, .customer-table {
display: block;
overflow-x: auto;
}

.transactions-table th,
.transactions-table td {
padding: 8px;
font-size: 0.8rem; /* Further reduce text size */
.transactions-table th, .transactions-table td,
.customer-table th, .customer-table td {
font-size: 0.8rem;
}
}
}

0 comments on commit 575e054

Please sign in to comment.