
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

/* Generic buttons used in multiple pages */

.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #20232a;
    color: #fff;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: bold;
}

.site-nav a {
    margin-left: 15px;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav .nav-cta {
    padding: 6px 12px;
    border-radius: 16px;
    background: #61dafb;
    color: #000;
    font-weight: 600;
}

/*FOOTER (HOME + ABOUT)*/

.site-footer {
    text-align: center;
    padding: 12px 5px;
    background: #20232a;
    color: #ccc;
    font-size: 0.85rem;
}

/*HOME / LANDING PAGE (index.html)*/

.landing-body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    padding: 40px;
    gap: 30px;
    color: #fff;
}

.hero-text {
    max-width: 400px;
}

.hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.primary-btn {
    background: #61dafb;
    color: #000;
}

.secondary-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.primary-btn:hover {
    background: #4ec4de;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 400px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 12px;
    padding: 15px 18px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.hero-card h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.hero-card p {
    font-size: 0.9rem;
}

/* Features section */

.features {
    background: #fff;
    padding: 30px 40px;
    text-align: center;
}

.features h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.feature-box {
    background: #f7f7ff;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    font-size: 0.9rem;
}

/*ABOUT PAGE (aboutus.html)*/

.about-body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-main {
    padding: 30px 40px;
    flex: 1;
}

.about-intro {
    max-width: 800px;
    margin-bottom: 25px;
}

.about-intro h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.about-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-size: 0.95rem;
}

.about-card h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.about-card ul {
    padding-left: 18px;
}

.about-extra {
    max-width: 800px;
}

/*DASHBOARD (index.php)*/

.dashboard-body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.dash-header a {
    margin-left: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.dash-header a.logout {
    font-weight: 700;
    color: #ffdddd;
}

.brand {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.dash-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-card {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 14px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    animation: fadeUp 0.5s ease-out;
}

.dash-card h1 {
    margin-bottom: 10px;
    font-size: 26px;
    color: #333;
}

.dash-card h1 span {
    color: #6c63ff;
}

.dash-card p {
    color: #666;
    margin-bottom: 25px;
}

.dash-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-btn {
    text-decoration: none;
    padding: 12px;
    background: #6c63ff;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
}

.dash-btn:hover {
    background: #5848ff;
}

/* Dashboard animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/*AUTH PAGES (login & register)*/

.auth-body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #282c34, #4e54c8);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: 14px;
    max-width: 450px;
    width: 100%;
    padding: 30px 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.auth-info h1 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.7rem;
    color: #333;
}

.auth-info p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 14px;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #333;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.checkbox-group {
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Messages on auth pages */
.auth-error {
    color: red;
    font-size: 0.9rem;
    min-height: 18px;
    margin-bottom: 8px;
}

.auth-success {
    color: green;
    font-size: 0.9rem;
    min-height: 18px;
    margin-bottom: 4px;
}

/* Note under forms */
.auth-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.auth-note a {
    color: #4e54c8;
    text-decoration: none;
    font-weight: 600;
}

.auth-note a:hover {
    text-decoration: underline;
}
