/* CSS:N ÄR BARA AI-GENERERAD

/* Grundinställningar för hela sidan */
body {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    justify-content: center;
    background-color: rgb(87, 20, 59); /* Din snygga lila färg */
    margin: 0;
    min-height: 100vh;
}

.tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-top: -10px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 90%;
    max-width: 700px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: #000000;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 10px 30px rgba(0,0,0,0.5);
    padding: 30px;
    text-align: center;
    color: #ffffff;
}
:hover.feature-card {
    background-color: #35064b;
    transform: scale(1.1);
    }

.feature-card h2 {
    color: #ff00ff;
    font-size: 18px;
    margin-bottom: 8px;
    margin-top: 0;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.grid-top,
.grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 90%;
    max-width: 900px;
    margin-top: 20px;
}
.grid-top {
    align-items: start;
}

/* Rubriken */
h1 {
    color: #ffffff;
    font-size: 48px;
    margin-bottom: 20px;
    padding: 15px 30px;
    border: 3px solid #ffffff;
    border-radius: 10px;
    margin-top: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Container för knappar */
.auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 40px;
}

/* Länkar och knappar */
a, input[type="submit"] {
    color: #ffffff;
    text-decoration: none;
    border: #ffffff 4px solid;
    border-radius: 10px;
    padding: 12px 25px;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    display: inline-block;
}

a:hover, input[type="submit"]:hover {
    background-color: #ffffff;
    color: rgb(87, 20, 59);
    transform: scale(1.05);
}

/* Informationsboxen och Formulär-behållaren */
.infobox{
    background-color: #000000;
    color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.infobox h2 {
    margin-top: 0;
    color: #ff00ff; /* Neon-accent */
}

/* --- TILLÄGG FÖR PHP/FORMULÄR --- */

/* Styling för input-fälten i register.php */
input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border-radius: 8px;
    border: 2px solid #ff00ff;
    background-color: #1a1a1a;
    color: white;
    font-size: 16px;
    box-sizing: border-box; /* Ser till att padding inte förstör bredden */
}

input:focus, select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 10px #ff00ff;
}

/* Styling för felmeddelanden från PHP */
.error-msg {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff4d4d;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ff4d4d;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Styling för framgångsmeddelanden */
.success-msg {
    background-color: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #00ff00;
    margin-bottom: 20px;
}

/* --- FORMULÄR: text, number, date, select --- */

label {
    display: block;
    text-align: left;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 4px;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    border: 2px solid #ff00ff;
    background-color: #1a1a1a;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}

/* --- WIDER BOX för prenumerationslistan --- */

.wide-box {
    max-width: 900px;
    margin-top: 20px;
}

/* --- LISTANS HEADER MED VALUTAVÄLJARE --- */

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.list-header h2 {
    margin: 0;
}

.currency-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-switcher label {
    display: inline;
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
}

select.select-inline {
    width: auto;
    padding: 7px 10px;
    margin: 0;
    font-size: 14px;
}

/* --- KONVERTERAT BELOPP I TABELL --- */

.converted-amount {
    color: #ff00ff;
    font-weight: bold;
}

.same-currency {
    color: rgba(255, 255, 255, 0.3);
}

/* --- PRENUMERATIONSTABELL --- */

.sub-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.sub-table th,
.sub-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

.sub-table th {
    color: #ff00ff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
}

/* --- RADERA-KNAPP --- */

.delete-btn {
    background: transparent;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    font-weight: bold;
}

.delete-btn:hover {
    background-color: #ff4d4d;
    color: white;
    transform: none;
}

/* --- Redigera-knapp ---*/
.edit-btn {
    background: transparent;
    border: 2px solid #ff00ff;
    color: #ff00ff;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    margin-right: 4px;
}

.edit-btn:hover {
    background-color: #ff00ff;
    color: white;
}

/* --- TOTAL ÅRSKOSTNAD --- */

.total-label {
    font-size: 18px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: right;
}

.total-label span {
    color: #ff00ff;
    font-weight: bold;
}

#editSalaryBtn {
    background: transparent;
    border: 2px solid #ff00ff;
    color: #ff00ff;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

/* style.css */

/* Boxen som håller allt */
.shame-container {
    background-color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 700px; /* Samma som dina feature-cards */
    margin: 40px auto !important; /* Centrerar boxen horisontellt */
    box-shadow: 0px 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.shame-container h2 {
    color: #ff00ff;
    font-size: 24px;
    margin-bottom: 10px;
}

.shame-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Raderna som skapas dynamiskt av JS */
.shame-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 5px solid #ff00ff; /* Neon-lila kant */
    transition: transform 0.2s ease;
}

.shame-row:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.shame-row .rank {
    font-size: 20px;
    font-weight: bold;
    width: 40px;
    text-align: left;
}

.shame-row .service-name {
    flex-grow: 1;
    text-align: left;
    font-weight: bold;
    color: #ffffff;
}

.shame-row .price {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #ff00ff; /* Neon-lila pris */
    font-size: 18px;
}