/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    margin: 0;
    padding: 20px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Containers */
#auth-container, #dashboard-container {
    width: 100%;
    max-width: 900px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #1a202c;
    margin-top: 0;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.header-link {
    margin-right: 15px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

.header-link:hover {
    text-decoration: underline;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select {
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
}

input:focus, select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Buttons */
button {
    padding: 12px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #357abd;
}

#logout-button {
    background-color: #e53e3e;
}

#logout-button:hover {
    background-color: #c53030;
}

/* Tabs */
#tabs-container {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    border-radius: 6px 6px 0 0;
}

.tab:hover {
    background-color: #edf2f7;
}

.tab.active {
    background-color: #ffffff;
    border-color: #e2e8f0;
    border-bottom-color: #ffffff;
    font-weight: 600;
}

/* Messages */
.error-message {
    color: #e53e3e;
    font-weight: bold;
}

#form-message {
    margin-top: 15px;
    font-weight: bold;
}

#form-message.success {
    color: #38a169;
}

#form-message.error {
    color: #e53e3e;
}

/* License Table */
.table-wrapper {
    overflow-x: auto;
}

#licenses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#licenses-table th, #licenses-table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

#licenses-table th {
    background-color: #edf2f7;
    font-weight: 600;
}

#licenses-table tr:nth-child(even) {
    background-color: #f7fafc;
}

#licenses-table td button {
    padding: 6px 10px;
    font-size: 14px;
}
