/* M Designs - Main Stylesheet */
:root {
    --primary-color: #E91E63;
    /* Soft Corporate Pink */
    --secondary-color: #F06292;
    /* Rose Pink */
    --light-blush: #FCE4EC;
    /* Light Blush */
    --accent-color: #333333;
    /* Charcoal Grey (Text/Accent) */
    --hover-color: #D81B60;
    /* Slightly darker pink for hover */
    --text-color: #333333;
    --light-text: #ffffff;
    --bg-color: #f8f9fa;
    --footer-bg: #1c2331;
    --border-color: #dddddd;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Global Header */
.header-container {
    background-color: var(--light-blush);
    /* Light Blush background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    height: auto;
    border-bottom: 3px solid var(--primary-color);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.company-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    text-align: right;
    font-size: 14px;
    color: var(--text-color);
}

.contact-info p {
    margin: 2px 0;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 0 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.navbar ul li {
    margin-right: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 15px 10px;
    display: block;
    transition: background-color 0.3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    background-color: var(--hover-color);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
    color: #eee;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Common Components */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--hover-color);
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    /* Ensure header radius clips */
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    /* Counteract card padding */
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.error-message {
    color: var(--danger-color);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        text-align: center;
        margin-top: 10px;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar ul li {
        width: 100%;
        margin: 0;
    }

    .navbar ul li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Grid Styles */
.styled-table {
    border-collapse: collapse;
    width: 100%;
    margin: 25px 0;
    font-size: 0.9em;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.grid-header th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 12px 15px;
}

.grid-row td,
.grid-row-alt td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
}

.grid-row:nth-of-type(even) {
    background-color: #f3f3f3;
}

.grid-row:last-of-type {
    border-bottom: 2px solid var(--primary-color);
}