/* Main Styles for IT-Central Apps */

:root {
    --primary-color: #4285F4;
    --primary-hover: #3367D6;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    /* Use normal document flow for dashboard layout (previous centered flex caused narrow left-aligned content) */
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    overflow: hidden;
    padding: 30px;
    text-align: center;
}

.logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: white;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.btn-google {
    background-color: white;
    color: #333;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-google:hover {
    background-color: #f8f9fa;
}

.btn-google img {
    width: 18px;
    height: 18px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--secondary-color);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

.footer-link {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.footer-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.form-error {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
}

/* Dashboard styles */
.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Main Menu styles */
.main-menu {
    background-color: var(--dark-color);
    padding: 10px 0;
    margin-bottom: 20px;
}

.main-menu h2 {
    color: white;
    font-size: 18px;
    margin: 0 0 10px 10px;
}

.main-menu-items {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu-items li {
    margin: 5px;
}

.main-menu-items a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    border-radius: 5px;
    padding: 10px;
    min-width: 100px;
    text-align: center;
    transition: background-color 0.3s;
}

.main-menu-items a:hover {
    background-color: var(--primary-hover);
}

.main-menu-items i {
    font-size: 24px;
    margin-bottom: 5px;
}

.main-menu-items span {
    font-size: 14px;
}

.dashboard-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 20px;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table tr:hover {
    background-color: #f8f9fa;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 5px;
}

.btn-edit {
    background-color: var(--warning-color);
    color: white;
}

.btn-delete {
    background-color: var(--danger-color);
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .table {
        display: block;
        overflow-x: auto;
    }
}
/* ---------- Global spacing & form improvements (added 2025-08-20) ---------- */
/* Improve label/input spacing and make form rows more readable across the site */
form {
    margin-top: 0;
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Use .form-row to lay related fields horizontally with gaps; falls back to vertical on small screens */
.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

/* Keep existing .form-group semantics but ensure consistent spacing */
.form-group {
    margin-bottom: 14px;
    width: 100%;
    min-width: 0;
}

/* Larger, more comfortable inputs and selects */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    line-height: 1.4;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66,133,244,0.08);
}

select {
    min-width: 160px;
}

/* Make textareas easier to use */
textarea {
    min-height: 80px;
    resize: vertical;
}

/* Buttons get a small top margin so they don't touch inputs */
.btn,
button {
    margin-top: 8px;
}

/* Give cards and dashboard areas a bit more internal padding for comfort */
.card,
.dashboard-card {
    padding: 24px;
}

/* Tables: give cells more horizontal space so content doesn't feel cramped */
.table th,
.table td {
    padding: 14px 18px;
}

/* Responsive: stack form rows on small screens */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}