/* HGX Web Project - Consolidated Styles */

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* ===== INDEX PAGE ===== */
.index-page {
    height: 100vh;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 28px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background-color: rgba(34, 34, 34, 0.9);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background-color: rgba(34, 34, 34, 1);
    transform: translateY(-1px);
}

/* ===== LOGIN PAGE ===== */
.login-page {
    height: 100vh;
    background: url('background2.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    background: rgba(34, 34, 34, 0.92);
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    min-width: 320px;
    text-align: center;
}

.login-form h2 {
    color: #fff;
    margin: 0 0 24px 0;
    font-size: 1.8rem;
    font-weight: 300;
}

.login-form input {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255,255,255,0.95);
    transition: background 0.2s ease;
}

.login-form input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px #0078d7;
}

.login-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #0078d7;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-form button:hover {
    background: #005fa3;
}

/* ===== WORKSPACE PAGE ===== */
.workspace-page {
    min-height: 100vh;
    background: #f5f7fa;
}

.workspace-page header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 24px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.workspace-page header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 300;
}

.user-info {
    position: absolute;
    top: 24px;
    right: 32px;
    text-align: right;
}

.user-info .logout-btn {
    background: #c62828;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.user-info .logout-btn:hover {
    background: #a71717;
}

.user-info .user-name {
    color: #ffcdd2;
    font-size: 0.9rem;
}

/* ===== NAVIGATION ===== */
.functions-container {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px;
}

.ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.ribbon-btn {
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
    text-align: center;
}

.ribbon-btn:hover,
.ribbon-btn:focus {
    background: #005fa3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ribbon-btn.active {
    background: #005fa3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== CONTENT SECTIONS ===== */
#workspace-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.workspace-section {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.workspace-section h2 {
    margin: 0 0 24px 0;
    color: #1e3c72;
    font-size: 1.6rem;
    font-weight: 400;
}

/* ===== FORMS ===== */
.workspace-form {
    max-width: 600px;
    margin: 0 auto;
}

.workspace-form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
    color: #333;
}

.workspace-form input[type="text"],
.workspace-form input[type="email"],
.workspace-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 4px;
}

.workspace-form input[type="checkbox"] {
    margin-right: 8px;
}

.workspace-form button {
    background: #0078d7;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.workspace-form button:hover {
    background: #005fa3;
}

/* ===== TABLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #dee2e6;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

/* ===== MESSAGES ===== */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 500;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .ribbon {
        flex-direction: column;
        align-items: center;
    }
    
    .ribbon-btn {
        min-width: 280px;
    }
    
    .workspace-section {
        margin: 16px;
        padding: 24px 16px;
    }
    
    .user-info {
        position: static;
        margin-top: 16px;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 12px;
    }
}
