/* CSS Variables for easy maintenance */
:root {
    --primary-bg: #ffffff;
    --secondary-bg: #1a1a1a;
    --accent: #ff914d; /* Lighter orange */
    --accent-dark: #ff6f1d; /* Lighter hover orange */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--primary-bg);
    margin: 0;
    padding: 2rem;
    line-height: 1.5;
    color: var(--text-dark);
}

header {
    background-color: var(--secondary-bg);
    color: var(--accent);
    padding: 1.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

/* Navigation styling */
nav a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Headings */
h1, h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.75rem;
}

/* Form styling */
form {
    margin: 2rem 0;
    max-width: 500px;
}

label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-weight: 500;
}

input, select {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 145, 77, 0.2); /* Adjusted for lighter orange */
}

/* Button styling */
.button {
    background-color: var(--accent);
    color: var(--text-dark);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    box-sizing: border-box;
    line-height: 1; /* Added to normalize height */
    text-decoration: none; /* Added for <a> tags */
}

.button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.edit-button {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1; /* Added to normalize height */
}

.edit-button:hover {
    background-color: #45a049;
}

.delete-button {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    cursor: pointer;
    border-radius: 4px;
    display: inline-block;
    box-sizing: border-box;
    line-height: 1; /* Added to normalize height */
    text-decoration: none; /* Added for consistency if applied to <a> */
}

.delete-button:hover {
    background-color: #cc0000;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    background-color: var(--primary-bg);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--secondary-bg);
    color: var(--accent);
    font-weight: 600;
}

td {
    background-color: var(--primary-bg);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    header {
        padding: 1rem;
    }
    
    nav a {
        margin: 0 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}