/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* Content */
.content {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Buttons */
button, .btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button:hover, .btn:hover {
    background: #2980b9;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9em;
}

.btn-cancel {
    background: #95a5a6;
    margin-left: 10px;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #f2f2f2;
}

/* Alerts */
.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* Status badges */
.status-draft {
    color: #6c757d;
}

.status-sent {
    color: #17a2b8;
}

.status-paid {
    color: #28a745;
}

.status-overdue {
    color: #dc3545;
}

/* Invoice specific */
.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.company-info {
    text-align: left;
}

.company-info .logo {
    max-height: 80px;
}

.invoice-info {
    text-align: right;
}

.invoice-parties {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bill-to, .from {
    width: 48%;
}

.invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invoice-items th, .invoice-items td {
    border: 1px solid #ddd;
    padding: 8px;
}

.invoice-totals {
    margin-left: auto;
    width: 300px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.grand-total {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 10px;
    border-top: 1px solid #333;
    padding-top: 5px;
}

.invoice-notes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Dashboard stats */
.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin-top: 0;
    color: #7f8c8d;
}

.stat-card p {
    font-size: 2em;
    margin: 10px 0 0;
    color: #2c3e50;
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
}
/* Clean Header Styles */
header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: #34495e;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    background: #f5f7fa;
    color: #3498db;
}

.nav-link.active {
    color: #3498db;
    background: #f0f7ff;
}

.nav-link i {
    font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 15px 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-link {
        padding: 12px 15px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .invoice-header, .invoice-parties {
        flex-direction: column;
    }
    
    .bill-to, .from {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .invoice-info {
        text-align: left;
        margin-top: 15px;
    }
}