/* UX4G Government Design System Inspired Styling for Railway Maximo Clone */

/* Global Top Header */
.global-header {
    background-color: #003366;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.global-header img {
    height: 100px;
    width: auto;
}

.global-header h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2em;
    margin: 0;
    font-weight: 600;
    text-align: center;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Global Base Styles */
body {
    font-family: 'Inter', 'IBM Plex Sans', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #212529;
    margin: 0;
    padding-top: 140px; /* Space for fixed header */
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    min-height: 100vh;
}

/* Login Page Styles */
.login-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(52, 58, 64, 0.12);
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #e9ecef;
}

.login-container h1 {
    color: #1a237e;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 700;
}

.login-container p {
    color: #495057;
    margin-bottom: 35px;
    font-size: 1.1em;
}

.forgot-password {
    margin-top: 20px;
    font-size: 0.95em;
}

.forgot-password a {
    color: #5c6bc0;
    text-decoration: none;
}

.forgot-password a:hover {
    color: #3f51b5;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1400px;
    margin: auto;
    text-align: center;
}

.maximo-title {
    color: #1a237e;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(26, 35, 126, 0.1);
    letter-spacing: -1px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(52, 58, 64, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: #212529;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5c6bc0 0%, #7986cb  50%, #9c27b0 100%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(52, 58, 64, 0.15);
    border-color: #5c6bc0;
}

.card:hover::before {
    height: 6px;
}

.card h2 {
    margin: 0;
    font-size: 1.4em;
    color: #1a237e;
    font-weight: 600;
    text-align: center;
}

.card:hover h2 {
    color: #3f51b5;
}

/* Form Container Styles */
.container {
    max-width: 900px;
    margin: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(52, 58, 64, 0.12);
    border: 1px solid #e9ecef;
}

.container h1 {
    color: #1a237e;
    text-align: center;
    border-bottom: 3px solid #5c6bc0;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 700;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #343a40;
    font-size: 0.95em;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    background-color: #ffffff;
    color: #212529;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: #5c6bc0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);
}

.form-group input:read-only {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Enhanced textarea styling */
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    background-color: #ffffff;
    color: #212529;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: 'Inter', 'IBM Plex Sans', sans-serif;
    min-height: 120px;
    resize: vertical;
    transition: all 0.2s ease;
}

textarea:focus {
    border-color: #5c6bc0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.1);
}

textarea::placeholder {
    color: #6c757d;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Back Button Styles */
.back-button, .back-btn {
    background: linear-gradient(135deg, #5c6bc0 0%, #7986cb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(92, 107, 192, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-right: 20px;
}

.back-button:hover, .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(92, 107, 192, 0.4);
    background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
}

.back-button:active, .back-btn:active {
    transform: translateY(0);
}

/* Header layout with back button and title */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.page-header .back-btn {
    margin-bottom: 0;
    margin-right: 20px;
}

.page-header h1 {
    margin: 0;
    flex: 1;
}

/* Button Styles */
.button-container {
    text-align: center;
    margin-top: 30px;
}

.button-container button, button {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 8px;
}

.button-container .submit-btn, .submit-btn {
    background: linear-gradient(135deg, #5c6bc0 0%, #7986cb 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(92, 107, 192, 0.3);
}

.button-container .submit-btn:hover, .submit-btn:hover {
    background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(92, 107, 192, 0.4);
}

.button-container .cancel-btn, .cancel-btn {
    background-color: #6c757d;
    color: white;
}

.button-container .cancel-btn:hover, .cancel-btn:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

/* Full-width button for login */
button[type="submit"] {
    width: 100%;
}

/* Login specific full-width button override */
.login-container button[type="submit"] {
    width: 100%;
}

/* Error Styles */
.error {
    color: #ff8389;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        margin: 10px;
        padding: 15px 20px;
    }
    
    .login-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
    }
    
    body {
        padding: 10px;
    }
}

/* Additional utility classes for future use */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}