* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}

.login-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
width: 100%;
}

.login-box {
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}

.login-box h1 {
color: #333;
margin-bottom: 10px;
text-align: center;
font-size: 26px;
}

.subtitle {
color: #666;
text-align: center;
margin-bottom: 30px;
font-size: 14px;
}

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

.form-group label {
display: block;
margin-bottom: 8px;
color: #333;
font-weight: 600;
font-size: 14px;
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
}

.form-group input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
width: 100%;
padding: 12px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
}

.btn-login:hover {
opacity: 0.9;
}

.error-message {
background: #fee;
color: #c33;
padding: 12px;
border-radius: 5px;
margin-top: 20px;
border-left: 4px solid #c33;
font-size: 14px;
}

.loading-spinner {
text-align: center;
padding: 20px;
}

.spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto 15px;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.admin-container {
display: flex;
min-height: 100vh;
width: 100%;
background: #f5f5f5;
}

.admin-nav {
width: 250px;
background: #2c3e50;
color: white;
padding: 30px 20px;
position: fixed;
height: 100vh;
overflow-y: auto;
}

.nav-brand h2 {
margin-bottom: 5px;
font-size: 20px;
}

.nav-brand p {
color: #bbb;
font-size: 12px;
margin-bottom: 30px;
}

.nav-menu {
list-style: none;
}

.nav-menu li {
margin-bottom: 10px;
}

.nav-link {
display: block;
color: #bbb;
text-decoration: none;
padding: 12px 15px;
border-radius: 5px;
cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
background: #3d5a80;
color: white;
}

.nav-link.logout {
margin-top: 40px;
color: #e74c3c;
}

.admin-main {
margin-left: 250px;
padding: 30px;
width: calc(100% - 250px);
}

.admin-main h2 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 24px;
}

.section-content {
display: none;
}

.section-content.active {
display: block;
}

.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 30px;
}

.card {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h3 {
color: #666;
font-size: 14px;
margin-bottom: 15px;
text-transform: uppercase;
}

.big-number {
font-size: 32px;
font-weight: bold;
color: #667eea;
}

.btn-primary,
.btn-secondary,
.btn-danger {
padding: 12px 20px;
border: none;
border-radius: 5px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
margin-bottom: 20px;
}

.btn-primary {
background: #667eea;
color: white;
}

.btn-primary:hover {
background: #5568d3;
}

.btn-secondary {
background: #ecf0f1;
color: #333;
}

.btn-danger {
background: #e74c3c;
color: white;
margin-bottom: 0;
margin-top: 10px;
}

.form-container {
background: white;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-container h3 {
margin-bottom: 15px;
color: #2c3e50;
}

.clients-list,
.files-list,
.tasks-list {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-info {
color: #666;
margin-bottom: 20px;
font-size: 14px;
}

.client-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
border-bottom: 1px solid #eee;
}

.client-container {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background: #f5f5f5;
}

.client-nav {
background: white;
padding: 15px 30px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}

.client-nav .nav-brand h2 {
color: #667eea;
margin: 0;
}

.client-nav .nav-menu {
list-style: none;
display: flex;
gap: 20px;
}

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

.client-content {
max-width: 800px;
margin: 0 auto;
}

.client-content h2 {
color: #2c3e50;
margin-bottom: 5px;
}

.client-email {
color: #666;
margin-bottom: 30px;
}

.project-card,
.messages-list {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}

.project-status {
margin-top: 15px;
display: flex;
align-items: center;
gap: 10px;
}

.status-badge {
background: #27ae60;
color: white;
padding: 5px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}

@media (max-width: 768px) {
.admin-nav {
width: 200px;
}
.admin-main {
margin-left: 200px;
width: calc(100% - 200px);
}
.dashboard-grid {
grid-template-columns: 1fr;
}
}

@media (max-width: 600px) {
.admin-nav {
display: none;
}
.admin-main {
margin-left: 0;
width: 100%;
}
.login-box {
padding: 25px;
}
}