/* Base Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url('https://www.transparenttextures.com/patterns/purty-wood.png') repeat;
    background-color: #f0f4f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #004080;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Form Container (Register/Login) */
.form-container {
    background: linear-gradient(to right, #e0f7fa, #f1f8ff);
    padding: 40px 30px;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-container h2 {
    margin-bottom: 1.5rem;
    color: #004080;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #005fa3;
}

/* Text Below Form */
.link-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.link-text a {
    color: #0077cc;
    text-decoration: none;
}

.link-text a:hover {
    text-decoration: underline;
}

/* Welcome Box (Dashboard) */
.welcome-box {
    background: linear-gradient(to right, #e0f7fa, #f1f8ff);
    padding: 30px;
    border-radius: 16px;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.welcome-box h2 {
    margin-top: 0;
    color: #004080;
    margin-bottom: 0rem;
}

.welcome-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Navigation Buttons */
.nav-buttons button {
    padding: 0.6rem 1.2rem;
    margin: 0 1rem;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
    background-color: #0056b3;
    color: #fff;
    transition: 0.3s ease;

}

/* Feedback Table Styles */
.feedback-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.feedback-table th,
.feedback-table td {
    border: 1px solid #ccc;
    padding: 12px 16px;
    text-align: left;
}

.feedback-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.feedback-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.feedback-table button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.feedback-table button:hover {
    background-color: #cc0000;
}

/* Logout Button */
.logout-button {
    float: right;
    margin-top: -40px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
}

.logout-button:hover {
    background-color: #e60000;
}

.logout-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-left: auto;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #cc0000;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #f1f1f1;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .form-container,
    .welcome-box,
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 10px;
        padding: 15px;
    }

    .feedback-table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .logout-button {
        float: none;
        display: block;
        margin: 10px auto 0 auto;
    }
}
 h2 {
    text-align: center;
    font-size:24px;
    font-weight:bold;
    margin-top: 20px;
    color: #333;
  }
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  font-family: sans-serif;
}


th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
   border-right: 1px solid #ccc;
}

table tr {
    border-bottom: 1px solid #ddd;
}


thead {
  background-color: #004080;
  color: white;
}

tr:hover {
  background-color: #f1f1f1;
}

.delete-btn {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

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


