/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --bg-color: #f9fafb;
    --primary-color: #1B50A4;
    --primary-color-light: #3365B5;
    --accent-color: #3b82f6;
    --danger-color: #ef4444;
    --card-bg: #ffffff;
    --text-color: #111827;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: 0.3s ease-in-out;
}

/* Body */
.body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Footer */
.header,
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
}

/* Main */
.main {
    padding: 2rem;
}

/* container */
.container {
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 1222px;
    min-height: 80vh;
}

a {
    text-decoration: none;
}

/* Welcome Text */
.welcome {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Paragraph */
.info-text {
    margin-bottom: 1rem;
}

/* Links (Shared Style) */
.card-link,
.logout {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-top: 1rem;
    margin-right: 1rem;
}

/* Primary Link */
.card-link {
    background-color: var(--primary-color);
    color: white;
}

.card-link:hover {
    background-color: var(--primary-color-light);
}

/* Logout Button */
.logout {
    background-color: var(--danger-color);
    color: white;
}

.logout:hover {
    background-color: #dc2626;
}

/* Responsive */
@media (max-width: 600px) {
    .main {
        padding: 1rem;
    }

    .welcome {
        font-size: 1.25rem;
    }

    .card-link,
    .logout {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* license register */
/* index */
.heading {
    font-size: 2rem;
    color: #00796b;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.link {
    color: #00796b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.link:hover {
    color: #004d40;
    text-decoration: underline;
}

.link-back {
    margin-left: 1rem;
}

.btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    color: white;
    background-color: var(--primary-color);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-new {
    background: #28a745;
}

.btn-new:hover {
    background: #218838;
}

.btn-delete {
    background: #dc3545;
}

.btn-delete:hover {
    background: #c82333;
}

.btn-edit {
    background: var(--primary-color);
}

.btn-edit:hover {
    background: var(--primary-color-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: left;
}

.table-header {
    background: #f4f4f4;
    font-weight: 600;
}

.table-cell {
    font-size: 1rem;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.actions-header {
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .body {
        margin: 1rem;
    }

    .heading {
        font-size: 1.5rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.9rem;
    }
}

/* new */
.heading {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #00796b;
}

.error-message {
    color: #d32f2f;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.form-label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-submit {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-color-light);
}

.link-cancel {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

.link-cancel:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .heading {
        font-size: 1.5rem;
    }
}

/* edit */
.heading {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #00796b;
}

.error-message {
    color: #d32f2f;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color-light);
    outline: none;
}


/* login */
.login-container {
    height: 100vh;
    width: 100vw;
    background: url('../images/login-bg.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphic Container */
.login-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
}

/* Typography */
.login-title {
    text-align: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.8rem;
    font-weight: 600;
}

.login-form {
    padding: 1.5rem;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #f1f1f1;
    font-weight: 500;
}

.input-field {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    width: 100%;
    transition: background 0.3s ease;
}

.input-field::placeholder {
    color: #e0e0e0;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.3);
}

/* Button */
.btn-login {
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background-color: #82A1D2;
    color: white;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background-color: #BBCCE6;
}

/* Error Message */
.error-message {
    background-color: rgba(255, 0, 0, 0.15);
    color: #ff6b6b;
    padding: 0.8rem;
    border-left: 5px solid #f44336;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 500px) {
    .login-container {
        padding: 2rem;
        margin: 1rem;
    }
}

