body { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; margin: 0; padding: 0; background-color: #f0f2f5; color: #1c1e21; line-height: 1.6; }
.top-nav { background-color: #1877f2; padding: 0 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; height: 56px; position: sticky; top:0; z-index: 1000;}
.top-nav .logo { color: white; font-size: 1.5em; font-weight: bold; text-decoration: none; display: flex; align-items: center; }
.top-nav .logo img {
    height: 36px;
    width: 36px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: white;
    padding: 2px;
}
.top-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.top-nav ul li a { color: white; text-decoration: none; padding: 18px 15px; display: block; font-weight: 500; transition: background-color 0.2s; border-radius: 4px; }
.top-nav ul li a:hover, .top-nav ul li a.active { background-color: #166fe5; }
.container { max-width: 1000px; margin: 25px auto; padding: 25px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.1); }
h1, h2, h3 { color: #1877f2; margin-bottom: 0.5em; }
h1 { text-align: center; font-size: 2em; margin-bottom: 1em;}
h2 { font-size: 1.6em; border-bottom: 1px solid #dddfe2; padding-bottom: 0.4em; margin-top: 1.5em;}
.message { padding: 12px 15px; margin-top: 10px; margin-bottom:10px; border-radius: 6px; text-align: left; font-weight: 500; opacity: 1; transition: opacity 0.5s ease-out;}
.message.fade-out { opacity: 0; }
.success { background-color: #e7f3ff; color: #1877f2; border: 1px solid #b9d6fb;}
.error { background-color: #ffebe8; color: #c92819; border: 1px solid #fdd1cD;}
.warning { background-color: #fffbe2; color: #7d6200; border: 1px solid #ffec8b; }
.loading-indicator { display: none; justify-content: center; align-items: center; text-align: center; padding: 15px; font-style: italic; color: #1877f2; font-size: 1.1em;}
label { display: block; margin-top: 12px; margin-bottom: 4px; font-weight: 600; color: #4b4f56; }
input[type="text"], input[type="password"], input[type="url"], input[type="datetime-local"], textarea, select {
    width: 100%; padding: 10px; margin-top: 4px; border: 1px solid #dddfe2; border-radius: 6px; box-sizing: border-box; font-size: 0.95em;
}
textarea { min-height: 80px; resize: vertical; }
button {
    background-color: #1877f2; color: white; padding: 10px 15px; border: none; border-radius: 6px; cursor: pointer; margin-top: 15px; font-size: 1em; font-weight: bold; transition: background-color 0.2s; margin-right: 8px;
}
button:hover { background-color: #166fe5; }
.button-danger { background-color: #fa3e3e; } .button-danger:hover { background-color: #e03030; }
.button-warning { background-color: #ffba00; color: #000; } .button-warning:hover { background-color: #f0ad00; }
.button-info { background-color: #17a2b8;} .button-info:hover {background-color: #138496;}
.button-secondary { background-color: #6c757d; } .button-secondary:hover { background-color: #5a6268; }
.section { margin-bottom: 30px; padding: 20px; border: 1px solid #ccd0d5; border-radius: 8px; background-color: #f7f8fa;}
.list-item { background-color: #fff; border: 1px solid #dddfe2; padding: 12px; margin-top: 8px; border-radius: 6px; display: flex; flex-wrap:wrap; justify-content: space-between; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,0.05);}
.list-item span { flex-grow: 1; margin-right: 10px; word-break: break-word; min-width: 200px; font-size: 0.9em;}
.list-item span strong { color: #050505; }
.list-item .actions { display: flex; gap: 8px; margin-top: 5px; flex-shrink: 0; align-items: center; }
.list-item .actions button { padding: 6px 10px; font-size: 0.9em; margin-top: 0;}
.checkbox-container { margin-top:12px; display: flex; align-items: center;}
.checkbox-container input[type="checkbox"] { width: auto; margin-right: 8px; height: 16px; width: 16px; }
.checkbox-container label { margin-top:0; font-weight:normal; font-size: 0.95em;}
.checkbox-group-horizontal { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 8px; }
.checkbox-group-horizontal label { display: flex; align-items: center; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.form-group { display: flex; flex-direction: column; }
small { color: #606770; font-size: 0.85em; display: block; margin-top: 4px;}
hr { border: 0; border-top: 1px solid #dddfe2; margin: 25px 0; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
.modal-content { background-color: #fff; margin: 8% auto; padding: 25px; border: 1px solid #888; width: 90%; max-width: 650px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); position: relative; animation: fadeInModal 0.3s ease-out; }
@keyframes fadeInModal { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { padding-bottom: 10px; border-bottom: 1px solid #dddfe2; margin-bottom: 15px;}
.modal-header h3 { margin:0; color: #1c1e21; }
.modal-body { max-height: 65vh; overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; font-size: 0.95em; }
.modal-body p { margin-bottom: 0.8em;} .modal-body strong { color: #333;}
.modal-message-box { background-color: #f0f2f5; padding: 10px; border-radius: 4px; margin-top: 5px; white-space: pre-wrap; border: 1px solid #e0e0e0; min-height:50px;}
.close-button { color: #606770; float: right; font-size: 28px; font-weight: bold; position: absolute; top: 15px; right: 20px; line-height: 1; }
.close-button:hover, .close-button:focus { color: #1c1e21; text-decoration: none; cursor: pointer; }
.days-of-week-selector { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 8px; }
.days-of-week-selector label { display: flex; align-items: center; }
.status-enabled { color: green; font-weight: bold; }
.status-disabled { color: #6c757d; }
.token-status { margin-top: 15px; padding: 15px; background-color: #f7f8fa; border: 1px solid #dddfe2; border-radius: 6px; }
.token-status p { margin: 0 0 8px 0; }
.billing-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.billing-card { background-color: #fff; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #dddfe2; }
.billing-card h4 { margin: 0 0 10px 0; color: #606770; font-size: 1em; }
.billing-card .billing-value { font-size: 2em; font-weight: 500; color: #1c1e21; margin: 0; }
.billing-card.remaining .billing-value { color: #38a169; }
.progress-bar-container { width: 100%; background-color: #e9ecef; border-radius: 8px; margin-top: 20px; overflow: hidden; }
.progress-bar { height: 24px; background-color: #1877f2; color: white; display: flex; align-items: center; justify-content: center; font-size: 0.8em; font-weight: bold; transition: width 0.5s ease-in-out; }
.error-text { color: #c92819; font-weight: bold; }