:root {
  --primary: #154212;
  --primary-light: #2d5a27;
  --secondary: #2c6956;
  --secondary-soft: #aeedd5;
  --success: #2e7d32;
  --success-bg: #e8f5e9;
  --error: #ba1a1a;
  --error-bg: #ffdad6;
  --shadow: 0 10px 6px rgba(0, 0, 0, 0.05);
  --text: #ffffff;
  --text-secondary: #42493e;
  --text-muted: #72796e;
  --transistion: all 0.25s ease;
  --btn-transition: all 0.2s ease-in-out;
  --btn-hover: translateY(-4px);
  --btn-active: scale(0.95);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}
body {
  background-color: #f8f9fa;
  color: var(--text-secondary);
  line-height: 1.5;
}
.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-template-areas:
    "header header header header"
    "main main main main"
    "footer footer footer footer";
  place-items: center;
  width: 100%;
}
header {
  grid-area: header;
  width: 100%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  color: var(--success-bg);
  padding: 20px;
}
header > a {
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  background-color: var(--primary);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--btn-transition);
  border: none;
  outline: none;
}
header > a:hover {
  background-color: var(--primary-light);
  border: 2px solid var(--success-bg);
}
main {
  grid-area: main;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas: "main-container main-container main-container main-container";
  place-content: center;
  padding: 20px;
  width: 100%;
}
.main-container {
  grid-area: main-container;
  padding: 20px;
  border-radius: 20px;
  gap: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-template-areas:
    "h1 h1 h1 h1"
    "div div div div"
    "card card card card";
  background-color: white;
  place-items: center;
}
.main-container > h1 {
  grid-area: h1;
  color: var(--primary);
}
.info-card,.pending-card{
    transition: var(--transistion);
}
.total-info {
  grid-area: div;
  width: 90%;
  display: flex;
  flex: 1 1 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow);
  color: var(--primary);
  border-radius: 20px;
}
.total-info > p {
  color: var(--primary-light);
}
.info-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--success);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.info-card>i{
  font-size: 2em;
}
.pending-submissions {
  grid-area: card;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 100%;
  gap: 10px;
  width: 90%;
  margin-top: 30px;
}
.pending-submissions > h2 {
  color: var(--primary);
}
.pending {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(auto-fit, minmax(280px, 1fr));
  place-items: center;
  margin-top: 30px;
  gap: 30px;
  padding: 20px;
}
.pending-card {
  padding: 20px;
  background-color: var(--success-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.info-card:hover,
.pending-card:hover {
  transform: var(--btn-hover);
  box-shadow: 0 14px 25px rgba(0,0,0,0.08);
}
.btns {
  display: flex;
  gap: 30px;
  flex: 1 1 100%;
}
.btns > button {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  border-radius: 20px;
  border: none;
  outline: none;
  color: var(--success-bg);
  transition: var(--btn-transition);
}
.btns > button:hover {
  font-weight: 400;
  transform: translateY(-2px);
}
.btns>button:active{
    transform: scale(0.95);
}
.approve {
  background-color: var(--success);
}
.approve:hover {
  background-color: var(--secondary-soft);
  border: 2px solid var(--primary);
  color: black;
}
.reject {
  background-color: var(--error);
}
.reject:hover {
  background-color: var(--error-bg);
  border: 2px solid var(--error);
  color: black;
}
.history-table {
  grid-area: card;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 100%;
  gap: 10px;
  width: 90%;
  margin-top: 30px;
}
.history-table > h2 {
  color: var(--primary);
}
table {
  padding: 20px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  text-align: center;
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: white;
}
.table-container{
    width: 100%;
    overflow-x: auto;
}
tr:hover{
    background-color: #f3f4f5;
}
td {
  border-bottom: 1px solid var(--primary);
  padding: 12px;
}
th {
  border-bottom: 2px solid var(--primary);
  padding: 12px;
  color: var(--primary);
}
footer {
  grid-area: footer;
  width: 100%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  color: var(--success-bg);
  padding: 20px;
}
.status{
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.status.approved{
  background: var(--success-bg);
  color: var(--success);
}
.status.rejected{
  background: var(--error-bg);
  color: var(--error);
}
.login{
  display: flex;
  flex-direction: column;
  gap: 10px;

}
.login > input{
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  outline: none;
  color: var(--primary);
}
.login>button{
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  border-radius: 20px;
  border: none;
  outline: none;
  color: var(--success-bg);
  transition: var(--btn-transition);
  background: var(--primary);
}
@media (max-width:765px) {
    .container{
        grid-template-columns: 1fr;
        grid-template-areas: 
        "header"
        "main"
        "footer";
    }
    header{
        flex-direction: column;
    }
    header > a{
        padding: 8px 10px;
    }
    main{
        grid-template-columns: 1fr;
        grid-template-areas: 
        "h1"
        "div"
        "card";
    }
    .total-info{
        gap: 5px;
    }
    .info-card{
        padding: 10px;
    }
    .pending{
        grid-template-columns: 1fr;
    }
    .pending-card{
        padding: 10px;
    }
    .btns{
        flex-direction: column;
    }
}
@media (max-width: 545px) {
    .total-info{
        flex-direction: column;
    }
}