@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');
:root {
    --primary-color: #3498db;
    --primary-color-rgb: 52, 152, 219;
    --secondary-color: #F45A2A;
    --secondary-color-rgb: 244, 90, 42;
    --dark-bg: #161a1d;
    --dark-card-bg: #2c3238;
    --text-light: #e1e1e1;
    --text-muted-light: #adb5bd;
    --border-color-dark: rgba(225, 225, 225, 0.15);
    --border-radius: 8px;
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.2);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --danger-color-rgb: 220, 53, 69;
}
#shorterm-pro-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; }
.shorterm-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(22, 26, 29, 0.9); backdrop-filter: blur(8px); }
.shorterm-modal-content { position: relative; background: #2c3238; padding: 30px 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); max-width: 500px; width: 90%; color: #e1e1e1; border: 1px solid rgba(225, 225, 225, 0.1); text-align: center; }
.shorterm-modal-content h3 { color: var(--primary-color); font-size: 1.8em; margin-top: 0; margin-bottom: 15px; }
.shorterm-modal-content p { font-size: 1.1em; line-height: 1.6; margin-bottom: 20px; }
.shorterm-modal-content ul { list-style: none; padding: 0; margin-bottom: 25px; text-align: left; display: inline-block; }
.shorterm-modal-content ul li { margin-bottom: 10px; font-size: 1em; }
.shorterm-modal-content .button { margin: 5px; }
.shorterm-buy-pro-floating-button { position: fixed; bottom: 27px; right: 20px; z-index: 9999; background: linear-gradient(45deg, var(--secondary-color), #ff7e5f); color: white; padding: 12px 25px; border-radius: 50px; font-family: 'Poppins', sans-serif; font-weight: 700; text-decoration: none; box-shadow: 0 5px 20px rgba(var(--secondary-color-rgb), 0.5); transition: all 0.3s ease; }
.shorterm-buy-pro-floating-button:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 30px rgba(var(--secondary-color-rgb), 0.6); color: white; }

/* --- Η ΑΛΛΑΓΗ ΕΙΝΑΙ ΕΔΩ --- */
.shorterm-full-bg { 
    background-color: #f0f0f1; 
    min-height: calc(100vh - 32px); 
    padding: 10px;
    font-family: 'Poppins', sans-serif; 
    box-sizing: border-box; 
}

.shorterm-app-container { 
    background-color: var(--dark-card-bg); 
    padding: 13px; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-dark); 
    width: 100%; /* ΤΩΡΑ ΠΙΑΝΕΙ ΤΟ 100% ΤΟΥ ΠΕΡΙΒΑΛΛΟΝΤΟΣ ΠΟΥ ΕΧΕΙ PADDING */
    max-width: none;
    margin: 0 auto; 
    border: 1px solid var(--border-color-dark); 
    color: var(--text-light); 
}

.shorterm-app-title, .form-title, .section-title { color: var(--text-light); margin-top: 0; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-color); font-weight: 700; }
.shorterm-form-wrapper, .links-section { background-color: var(--dark-card-bg); padding: 13px; border-radius: var(--border-radius); margin-bottom: 25px; border: 1px solid var(--border-color-dark); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted-light); font-weight: 600; }
.label-hint { font-weight: 300; font-size: 0.9em; opacity: 0.8; }
.form-control { width: 100%; padding: 10px 12px; background-color: var(--dark-bg); color: var(--text-light); border: 1px solid var(--border-color-dark); border-radius: 6px; font-size: 1em; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: var(--primary-color); }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.button, input[type="submit"].button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 22px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 0.95rem; color: #fff; }
.button:hover, input[type="submit"].button:hover { transform: translateY(-3px) scale(1.03); }
.button-primary { background: linear-gradient(45deg, var(--primary-color), #5dade2); }
.button-secondary { background-color: transparent; color: var(--text-light) !important; border: 2px solid var(--text-light); }
.button-danger { background: linear-gradient(45deg, var(--danger-color), #e0626e); }
.pro-feature-gated { opacity: 0.6; position: relative; cursor: not-allowed; padding: 10px; }
.pro-feature-gated .pro-feature-control, .pro-feature-gated .pro-feature-button { pointer-events: none; }
.pro-feature-button, .pro-feature-control:disabled { cursor: not-allowed; opacity: 0.6; }
.pro-tag { background-color: var(--secondary-color); color: white; font-size: 0.7em; padding: 2px 6px; border-radius: 4px; font-weight: bold; margin-left: 8px; vertical-align: middle; }
.links-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.links-section { max-height: 65vh; overflow-y: auto; }
.table-responsive { overflow-x: auto; }

.shorterm-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.shorterm-table th, .shorterm-table td { 
    padding: 12px 10px; 
    border-bottom: 1px solid var(--border-color-dark); 
    text-align: left; 
    color: var(--text-muted-light);
    vertical-align: middle;
}
.shorterm-table th { background-color: rgba(0,0,0,0.1); color: var(--text-light); font-weight: 600; }
.shorterm-table tbody tr:hover td { background-color: rgba(255,255,255,0.03); }
.short-url-link { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.short-url-link:hover { color: var(--secondary-color), text-decoration: underline; }
.action-cell { white-space: nowrap; text-align: right !important; }
.action-cell .button { margin: 0 2px; padding: 6px 10px; font-size: 0.85rem; }
.action-cell .button.delete-link:hover { background: var(--danger-color); }
.action-cell .button.copied { background: var(--success-color) !important; transform: none; }
#shorterm-messages { margin-top: 15px; }
div.error, div.updated { padding: 10px 15px; border-radius: var(--border-radius); margin-bottom: 15px; color: var(--text-light); border-left: 4px solid; }
div.updated { background-color: rgba(var(--primary-color-rgb), 0.15); border-left-color: var(--primary-color); }
div.error { background-color: rgba(var(--danger-color-rgb), 0.15); border-left-color: var(--danger-color); }


.shorterm-table .check-column, 
.shorterm-table th:nth-child(1), 
.shorterm-table td:nth-child(1) { width: 45px; }

.shorterm-table .short-url-cell, 
.shorterm-table th:nth-child(2), 
.shorterm-table td:nth-child(2) { width: 22%; }

.shorterm-table .original-url-cell, 
.shorterm-table th:nth-child(3), 
.shorterm-table td:nth-child(3) { width: 31%; }

.shorterm-table th:nth-child(4), 
.shorterm-table td:nth-child(4) { width: 15%; }

.shorterm-table .action-header, 
.shorterm-table .action-cell,
.shorterm-table th:nth-child(5), 
.shorterm-table td:nth-child(5) { width: auto; }


.shorterm-table .original-url-text,
.shorterm-table .short-url-link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}