:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --bg-color: #f8f9fa;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.text-muted {
    color: #7f8c8d;
}

/* Installation Items */
.installation-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--secondary-color);
}

.installation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #f1f8ff;
}

.inst-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
}

.inst-info {
    flex-grow: 1;
}

.inst-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--primary-color);
}

.inst-info small {
    color: #7f8c8d;
}

.inst-action {
    color: #bdc3c7;
    transition: color 0.2s;
}

.installation-item:hover .inst-action {
    color: var(--secondary-color);
}

/* Posts List */
.post-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    margin-bottom: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.post-item:hover {
    background-color: #f8f9fa;
}

.post-item input[type="checkbox"] {
    margin: 0 15px 0 0;
    transform: scale(1.2);
    cursor: pointer;
}

.post-info {
    flex-grow: 1;
}

.post-info label {
    display: block;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.post-date {
    font-size: 13px;
    color: #7f8c8d;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 25px;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    height: 48px;
    width: auto;
    border-radius: 6px;
}

header h1 {
    margin: 0;
    font-size: 1.4em;
}

/* App Top Bar */
.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.app-topbar .welcome-text {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.btn-logout {
    background: none;
    border: 1px solid #ccc;
    color: #999;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-logout:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

#output {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Tabs */
.site-tabs button {
    margin-left: 5px;
}

/* Subscribers Table */
.subs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.subs-table th,
.subs-table td {
    border: 1px solid #eee;
    padding: 10px 15px;
    text-align: left;
}

.subs-table th {
    background-color: var(--bg-color);
    font-weight: 600;
    color: var(--primary-color);
}

.subs-table tr:nth-child(even) {
    background-color: #fafafa;
}

.text-success {
    color: #27ae60;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: white;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    margin-top: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #2ecc71;
}

.toast-error {
    border-left-color: #e74c3c;
}

.toast-icon {
    margin-right: 15px;
    font-size: 20px;
}

.toast-success .toast-icon {
    color: #2ecc71;
}

.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-message {
    font-size: 14px;
    color: var(--text-color);
}

/* Help Trigger Animation */
.help-trigger {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s;
}

.help-trigger:hover {
    transform: scale(1.2) rotate(10deg);
    color: #2980b9 !important;
}