/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
nav {
    background: #2c3e50;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav .brand {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: #34495e;
}

nav span {
    color: #ecf0f1;
}

/* Content area */
.content {
    background: #fff;
    padding: 30px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 400px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: inline-block;
    width: 120px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 8px 12px;
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #2ecc71;
}

.btn-success:hover {
    background: #27ae60;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

/* Login/Register containers */
.login-container,
.register-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-container h2,
.register-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container .form-group,
.register-container .form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-container .form-group input,
.register-container .form-group input {
    width: 200px;
}

.login-container .btn,
.register-container .btn {
    width: 100%;
    margin-top: 10px;
}

.login-container .register-link,
.register-container .login-link {
    text-align: center;
    margin-top: 15px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

table tr:hover {
    background: #f8f9fa;
}

/* Actions buttons in tables */
table td form {
    display: inline;
}

table td .btn {
    padding: 5px 12px;
    font-size: 12px;
    margin: 2px;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-group label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select {
        width: 100%;
    }
    
    table {
        font-size: 14px;
    }
    
    table td .btn {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    nav .container {
        flex-direction: column;
        gap: 10px;
    }
}