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

body { 
    font-family: Arial, sans-serif; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
    line-height: 1.5;
    background: #f5f1eb;
    color: #4a3f35;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #4a3f35;
    margin-bottom: 20px;
}

/* Form styles */
.form-group { 
    margin-bottom: 15px; 
}

label { 
    display: block; 
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a3f35;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea { 
    width: 100%; 
    padding: 10px; 
    box-sizing: border-box; 
    border: 1px solid #d4c5b9;
    border-radius: 6px;
    transition: border-color 0.2s;
    font-size: 0.9rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #8b6b4f;
    box-shadow: 0 0 4px rgba(139, 107, 79, 0.2);
}

/* Button styles */
button, .btn { 
    padding: 10px 15px; 
    background: #8b6b4f; 
    color: white; 
    border: none; 
    cursor: pointer; 
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, transform 0.1s;
    font-size: 0.9rem;
}

button:hover, .btn:hover {
    background: #725642;
    transform: translateY(-1px);
}

button:active, .btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Message styles */
.error { 
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #d4c5b9;
    align-items: center;
}

nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #4a3f35;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #8b6b4f;
}

nav a:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 0;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #d4c5b9;
}

th {
    background-color: #f8f4f0;
    font-weight: 600;
}

th, td {
    padding: 12px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f8f4f0;
}

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

/* Responsive styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        max-width: 100%;
        padding: 15px;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav div:last-child {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
    }
    
    nav a {
        margin: 5px 10px 5px 0;
    }
}