/* === Sean Halpin Inspired "Dev Portfolio" Style === */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');

body {
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    background-color: #161616;
    color: #e0e0e0;
    margin: 0;
    padding: 40px;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    background-color: #161616;
    padding: 35px 0;
    border: none;
    box-shadow: none;
}

h1 {
    font-size: 32px;
    color: #17c964;
    font-weight: 600;
    margin-bottom: 30px;
}

h2 {
    font-size: 24px;
    color: #e0e0e0;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 35px;
}

.product-item {
    display: grid;
    grid-template-columns: 4fr 1fr 1.5fr 1.5fr 1.5fr auto;
    gap: 15px;
    align-items: center;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 15px;
}

a {
    color: #17c964;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Global Input Styles */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #161616;
    color: #e0e0e0;
    font-family: 'Fira Code', monospace;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #17c964;
}

.button-group,
.dashboard-header .actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Buttons */
.btn-add,
.btn-generate,
.btn-remove {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    color: #161616;
    background-color: #17c964;
    box-shadow: 4px 4px 0 #e0e0e0;
    transition: transform 0.1s, box-shadow 0.1s;
    display: inline-block;
    text-align: center;
}

.btn-add:hover,
.btn-generate:hover,
.btn-remove:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #e0e0e0;
    text-decoration: none;
}

.btn-add {
    background-color: #fff;
    color: #161616;
    border-color: #17c964;
    box-shadow: 4px 4px 0 #17c964;
}

.btn-add:hover {
    box-shadow: 2px 2px 0 #17c964;
}

.btn-remove {
    background-color: #ff4d4d;
    color: #161616;
    padding: 8px 14px;
    font-size: 14px;
    box-shadow: 4px 4px 0 #e0e0e0;
}

/* === DASHBOARD TABLE === */
.dashboard-table {
    width: 100%;
    margin-top: 20px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
    vertical-align: middle;
    white-space: nowrap;
}

.dashboard-table thead {
    background-color: #17c964;
    color: #161616;
}

.dashboard-table th {
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.dashboard-table td {
    background-color: #212121;
    color: #e0e0e0;
}

.dashboard-table tbody tr:hover td {
    background-color: #333;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === NEW FILTER ROW STYLES === */
tr.filter-row th {
    padding: 8px 15px;
    background-color: #148a46;
    border-bottom: 2px solid #e0e0e0;
}

.filter-input {
    width: 100%;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.filter-input:focus {
    outline: none;
    background-color: #161616;
    border-color: #fff;
}

.status-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dropdown {
    width: 130px;
    padding: 5px;
    font-size: 12px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
}

.btn-tick {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-tick:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-tick svg {
    stroke: #fff;
    width: 18px;
    height: 18px;
}

/* === FIXED ACTION COLUMNS === */
.actions-cell {
    display: flex;
    /* Keep Flex to align items */
    align-items: center;
    /* Center items vertically */
    gap: 10px;
    /* REMOVED height: 100% to fix black box */
}

.action-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
}

.action-icon-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.action-icon-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.btn-delete-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    border-radius: 4px;
}

.btn-delete-icon:hover {
    background-color: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

.btn-delete-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Filter Toggle Button */
.btn-filter {
    background-color: #212121;
    color: #e0e0e0;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter:hover,
.btn-filter.active {
    border-color: #17c964;
    color: #17c964;
    background-color: #1a1a1a;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.flash {
    padding: 15px 25px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 8px 8px 0 rgba(23, 201, 100, 0.5);
}

.flash.success {
    background-color: #17c964;
    color: #161616;
}

.flash.error {
    background-color: #ff4d4d;
    color: #161616;
}

/* === LOGIN PAGE STYLES === */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #111;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background-color: #161616;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.login-card h1 {
    font-size: 36px;
    color: #17c964;
    margin-bottom: 5px;
}

.login-card p {
    color: #888;
    margin-top: 0;
    margin-bottom: 30px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #fff;
    color: #161616;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.login-footer {
    font-size: 11px;
    margin-top: 30px !important;
    margin-bottom: 0 !important;
    color: #444 !important;
}