* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #faf5ff 0%, #fff1f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 370px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 30px 30px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.18);
}

.login-card h1 {
    text-align: center;
    font-size: 28px;
    color: #111827;
    margin-bottom: 8px;
}

.login-card p {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.login-card button {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #9333ea, #db2777);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.login-card button:hover {
    opacity: 0.9;
}

.input-wrapper {
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.input-wrapper:focus-within {
    border-color: #9333ea;
}

.input-wrapper img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.6;
    flex-shrink: 0;
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    font-size: 14px;
    color: #374151;
    padding: 0;
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

/* FORM */

.form-group {
    margin-bottom: 22px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: #9333ea;
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

/* DASHBOARD */

.dashboard-page {
    min-height: 100vh;
    background: #f8fafc;
}

.dashboard-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

.dashboard-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.dashboard-content {
    padding: 30px 8%;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-logout {
    height: 42px;
    padding: 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: 0.2s;
}

.btn-logout:hover {
    background: #f9fafb;
}

/* SEARCH */

.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.search-box {
    width: 100%;
    height: 44px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 14px;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #374151;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.btn-search {
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* BUTTONS */

.btn-new,
.btn-save {
    background: linear-gradient(90deg, #9333ea, #db2777);
    color: #fff;
    font-weight: 600;
}

.btn-new,
.btn-cancel,
.btn-save {
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
}

.btn-new {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: 0.2s;
}

.btn-new:hover {
    opacity: 0.92;
}

.btn-cancel {
    border: 1px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #374151;
}

.btn-save {
    border: none;
    cursor: pointer;
}

/* TABLE */

.content-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.desktop-table {
    width: 100%;
    border-collapse: collapse;
}

.desktop-table thead {
    background: #f9fafb;
}

.desktop-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
}

.desktop-table td {
    padding: 18px 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #111827;
}

/* TAG */

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    font-size: 11px;
    color: #6b7280;
    margin-right: 5px;
}

/* ACTIONS */

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions form {
    margin: 0;
    padding: 0;
}

.actions button,
.actions .edit {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.actions button img,
.actions .edit img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.75;
    transition: 0.2s;
}

.actions button:hover,
.actions .edit:hover {
    background: #f3f4f6;
}

.actions button:hover img,
.actions .edit:hover img {
    opacity: 1;
    transform: scale(1.08);
}

/* CREATE */

.create-page {
    min-height: 100vh;
    background: #f8fafc;
}

.create-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 8%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
}

.btn-back:hover {
    background: #f3f4f6;
}

.btn-back img {
    width: 20px;
    height: 20px;
}

.create-header h1 {
    margin: 0;
    font-size: 22px;
    color: #111827;
}

.create-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.create-content {
    padding: 30px 8%;
}

.create-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.form-card h2 {
    margin: 0 0 24px;
    font-size: 16px;
    color: #111827;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* MOBILE */

.mobile-list {
    display: none;
}

@media (max-width: 768px) {

    .dashboard-header {
        padding: 18px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-content,
    .create-content,
    .create-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dashboard-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        max-width: 100%;
    }

    .btn-search {
        width: 110px;
    }

    .btn-new,
    .btn-cancel,
    .btn-save {
        width: 100%;
    }

    .desktop-table {
        display: none;
    }

    .content-card {
        background: transparent;
        border: none;
        overflow: visible;
    }

    .mobile-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 16px;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    }

    .mobile-card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-card h3 {
        margin: 0;
        font-size: 15px;
        line-height: 1.4;
        color: #111827;
    }

    .mobile-tags {
        margin-top: 14px;
    }

    .mobile-info {
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12px;
        color: #6b7280;
    }

    .actions button,
    .actions .edit {
        width: 32px;
        height: 32px;
    }

    .actions button img,
    .actions .edit img {
        width: 17px;
        height: 17px;
    }

    .form-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {

    .login-page {
        padding: 20px;
    }

    .login-card {
        width: 100%;
        max-width: 370px;
        padding: 24px 20px;
        border-radius: 12px;
    }

    .login-card h1 {
        font-size: 24px;
    }

    .login-card p {
        font-size: 13px;
        margin-bottom: 26px;
    }

    .input-wrapper,
    .login-card button {
        height: 44px;
    }
}

@media (max-width: 420px) {

    .dashboard-header h1 {
        font-size: 20px;
    }

    .dashboard-header p {
        font-size: 13px;
    }

    .mobile-card {
        padding: 14px;
    }

    .mobile-card h3 {
        font-size: 14px;
    }

    .btn-logout,
    .btn-new {
        font-size: 13px;
    }
}

@media (max-width: 360px) {

    .login-card {
        padding: 22px 16px;
    }

    .login-card h1 {
        font-size: 22px;
    }

    .form-group label,
    .login-card button,
    .input-wrapper input {
        font-size: 13px;
    }
}