@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(45deg, #8e44ad, #3498db);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-container {
    flex: 1;
    padding: 50px;
}

.form-header h1 {
    font-size: 2.5rem;
    color: #8e44ad;
    margin-bottom: 10px;
}

.form-header p {
    color: #555;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #8e44ad;
    box-shadow: 0 0 5px rgba(142, 68, 173, 0.5);
}

.submit-btn {
    background: #8e44ad;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
}

.image-container img {
    max-width: 80%;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #f5f5f5;
}

.sidebar {
    width: 250px;
    background: #8e44ad;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.logo h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.nav-links {
    list-style: none;
    margin-bottom: auto;
}

.nav-links li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    background: #3498db;
}

.admin-profile {
    text-align: center;
}

.admin-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.main-content {
    flex: 1;
    padding: 30px;
}

.header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.client-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-table th,
.client-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.client-table th {
    background: #8e44ad;
    color: #fff;
}

.client-table tbody tr:hover {
    background: #f9f9f9;
}

.client-table select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.client-table button {
    background: #3498db;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-table button:hover {
    background: #2980b9;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, #8e44ad, #3498db);
}

.login-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form h2 {
    font-size: 2rem;
    color: #8e44ad;
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.login-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: #8e44ad;
    box-shadow: 0 0 5px rgba(142, 68, 173, 0.5);
}

.login-form .submit-btn {
    background: #8e44ad;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.login-form .submit-btn:hover {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.error-message {
    color: red;
    margin-bottom: 15px;
}
