Files
wp-bnb/assets/css/admin.css

691 lines
10 KiB
CSS
Raw Permalink Normal View History

/**
* WP BnB Admin Styles
*
* @package Magdev\WpBnb
*/
/* Dashboard */
.wp-bnb-dashboard {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
padding: 20px;
margin-top: 20px;
}
/* License Status Badge */
.wp-bnb-license-status {
display: inline-flex;
align-items: center;
gap: 5px;
font-weight: 600;
}
.wp-bnb-license-status .dashicons {
font-size: 18px;
width: 18px;
height: 18px;
}
/* License Message */
#wp-bnb-license-message {
margin: 15px 0;
padding: 12px 15px;
border-radius: 4px;
}
#wp-bnb-license-message.success {
background: #d4edda;
border: 1px solid #c3e6cb;
color: #155724;
}
#wp-bnb-license-message.error {
background: #f8d7da;
border: 1px solid #f5c6cb;
color: #721c24;
}
/* Spinner */
#wp-bnb-license-spinner {
float: none;
margin-left: 10px;
}
/* Settings Tabs */
.nav-tab-wrapper {
margin-bottom: 20px;
}
.tab-content {
background: #fff;
border: 1px solid #c3c4c7;
border-top: none;
padding: 20px;
}
/* Form Tables */
.form-table th {
width: 200px;
}
/* Submit Buttons */
.submit {
display: flex;
align-items: center;
gap: 10px;
}
.submit .button {
margin: 0;
}
/* Room Gallery */
.bnb-gallery-container {
padding: 10px 0;
}
.bnb-gallery-images {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 15px;
}
.bnb-gallery-image {
position: relative;
width: 100px;
height: 100px;
border: 1px solid #c3c4c7;
border-radius: 4px;
overflow: hidden;
cursor: move;
}
.bnb-gallery-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bnb-gallery-image .bnb-remove-image {
position: absolute;
top: 2px;
right: 2px;
width: 20px;
height: 20px;
padding: 0;
border: none;
border-radius: 50%;
background: rgba(0, 0, 0, 0.7);
color: #fff;
font-size: 14px;
line-height: 18px;
text-align: center;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s;
}
.bnb-gallery-image:hover .bnb-remove-image {
opacity: 1;
}
.bnb-gallery-image .bnb-remove-image:hover {
background: #d63638;
}
/* Status Badge */
.bnb-status-badge {
display: inline-block;
padding: 3px 8px;
border-radius: 3px;
color: #fff;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
}
/* Room Details Meta Box */
#bnb_room_details .form-table td label {
display: inline-block;
min-width: 100px;
}
/* Building Details Meta Box */
#bnb_building_details p {
margin: 10px 0;
}
#bnb_building_details label {
display: block;
margin-bottom: 5px;
font-weight: 600;
}
#bnb_building_details input {
width: 100%;
}
/* Admin Columns */
.column-city,
.column-country,
.column-room_number,
.column-capacity,
.column-status {
width: 100px;
}
.column-building {
width: 150px;
}
.column-rooms {
width: 80px;
}
/* Dashicons in columns */
.column-capacity .dashicons {
color: #646970;
font-size: 16px;
vertical-align: middle;
margin-right: 3px;
}
/* Price column */
.column-price {
width: 120px;
}
.bnb-no-price {
color: #646970;
font-style: italic;
}
/* Pricing Meta Box */
.bnb-pricing-table h4 {
margin: 0 0 10px 0;
padding: 0;
font-size: 13px;
font-weight: 600;
color: #1d2327;
}
.bnb-pricing-table tr:first-child th,
.bnb-pricing-table tr:first-child td {
padding-top: 0;
}
.bnb-price-input-wrapper {
display: flex;
align-items: center;
gap: 8px;
}
.bnb-price-input-wrapper input {
width: 100px !important;
}
.bnb-price-unit {
color: #646970;
font-size: 13px;
}
/* Seasons Page */
.bnb-seasons-description {
background: #fff;
border: 1px solid #c3c4c7;
border-left: 4px solid #72aee6;
padding: 12px 15px;
margin: 20px 0;
}
.bnb-seasons-description p {
margin: 5px 0;
}
.bnb-no-seasons {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
padding: 40px;
text-align: center;
}
.bnb-no-seasons p {
margin: 15px 0;
}
.bnb-no-seasons .button {
margin: 0 5px;
}
/* Season List Columns */
.column-name {
width: 25%;
}
.column-dates {
width: 20%;
}
.column-modifier {
width: 20%;
}
.column-priority {
width: 10%;
}
.column-status {
width: 10%;
}
.bnb-modifier-visual {
font-size: 12px;
margin-left: 5px;
}
.bnb-status-active {
display: inline-flex;
align-items: center;
color: #00a32a;
font-weight: 600;
}
.bnb-status-active::before {
content: "\f147";
font-family: dashicons;
margin-right: 3px;
}
.bnb-status-inactive {
display: inline-flex;
align-items: center;
color: #646970;
}
.bnb-status-inactive::before {
content: "\f460";
font-family: dashicons;
margin-right: 3px;
}
/* Season Form */
.bnb-season-form {
max-width: 800px;
}
.bnb-season-form .form-table th {
width: 180px;
}
.bnb-season-form input[type="text"].small-text {
width: 80px;
}
/* ==========================================================================
Booking System Styles
========================================================================== */
/* Booking Info Display */
.bnb-booking-info {
padding: 8px 12px;
background: #f6f7f7;
border: 1px solid #c3c4c7;
border-radius: 4px;
font-size: 13px;
}
.bnb-booking-info.bnb-checking {
color: #646970;
font-style: italic;
}
.bnb-booking-info.bnb-available {
background: #d4edda;
border-color: #c3e6cb;
color: #155724;
}
.bnb-booking-info.bnb-not-available {
background: #f8d7da;
border-color: #f5c6cb;
color: #721c24;
}
.bnb-booking-info .dashicons {
font-size: 16px;
width: 16px;
height: 16px;
vertical-align: text-bottom;
margin-right: 3px;
}
/* Booking Price Display */
.bnb-booking-price {
padding: 12px 15px;
background: #f0f6fc;
border: 1px solid #c3c4c7;
border-radius: 4px;
margin-bottom: 10px;
}
.bnb-booking-price strong {
font-size: 18px;
color: #135e96;
}
/* Price Breakdown */
.bnb-booking-breakdown,
.bnb-breakdown-list {
margin: 0;
padding: 0;
list-style: none;
}
.bnb-breakdown-list li {
padding: 5px 0;
border-bottom: 1px dotted #c3c4c7;
}
.bnb-breakdown-list li:last-child {
border-bottom: none;
font-weight: 600;
}
/* Price Override Indicator */
.bnb-price-override {
color: #dba617;
font-weight: bold;
cursor: help;
}
/* Status Preview */
.bnb-status-preview {
margin-top: 10px;
}
.bnb-status-timestamp {
font-size: 11px;
color: #646970;
margin-top: 5px;
}
/* Required Field Indicator */
.required {
color: #d63638;
}
/* Booking Admin Columns */
.column-room,
.column-guest,
.column-dates,
.column-nights,
.column-price {
width: 120px;
}
.column-room small,
.column-guest small,
.column-dates small {
display: block;
color: #646970;
font-size: 11px;
}
/* ==========================================================================
Calendar Page Styles
========================================================================== */
/* Calendar Container */
.bnb-calendar-container {
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
margin-top: 20px;
}
/* Calendar Header */
.bnb-calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: #f6f7f7;
border-bottom: 1px solid #c3c4c7;
}
.bnb-calendar-header h2 {
margin: 0;
font-size: 18px;
}
.bnb-calendar-nav {
display: flex;
gap: 5px;
}
/* Calendar Filters */
.bnb-calendar-filters {
display: flex;
gap: 15px;
padding: 15px 20px;
border-bottom: 1px solid #c3c4c7;
background: #f9f9f9;
}
.bnb-calendar-filters label {
display: flex;
align-items: center;
gap: 8px;
}
.bnb-calendar-filters select {
min-width: 200px;
}
/* Calendar Grid */
.bnb-calendar-grid {
padding: 20px;
overflow-x: auto;
}
.bnb-calendar-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.bnb-calendar-table th,
.bnb-calendar-table td {
border: 1px solid #c3c4c7;
text-align: center;
padding: 0;
min-width: 35px;
}
.bnb-calendar-table th {
background: #f6f7f7;
font-weight: 600;
padding: 8px 4px;
font-size: 11px;
}
.bnb-calendar-table th.room-header {
text-align: left;
padding-left: 10px;
min-width: 150px;
}
/* Calendar Day Cell */
.bnb-calendar-day {
height: 35px;
vertical-align: middle;
position: relative;
cursor: default;
}
.bnb-calendar-day.past {
background: #f0f0f1;
color: #a7aaad;
}
.bnb-calendar-day.today {
background: #f0f6fc;
font-weight: 600;
}
.bnb-calendar-day.today::after {
content: "";
position: absolute;
bottom: 2px;
left: 50%;
transform: translateX(-50%);
width: 4px;
height: 4px;
background: #2271b1;
border-radius: 50%;
}
.bnb-calendar-day.available {
background: #d4edda;
}
.bnb-calendar-day.booked {
background: #d63638;
color: #fff;
cursor: pointer;
}
.bnb-calendar-day.booked.booking-hover {
background: #a02424;
}
.bnb-calendar-day.booked-start {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.bnb-calendar-day.booked-end {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
/* Booking Status Colors in Calendar */
.bnb-calendar-day.status-pending {
background: #dba617;
}
.bnb-calendar-day.status-confirmed {
background: #00a32a;
}
.bnb-calendar-day.status-checked_in {
background: #72aee6;
}
/* Room Row in Multi-Room Calendar */
.bnb-calendar-room {
font-weight: 600;
text-align: left;
padding: 8px 10px;
background: #f6f7f7;
}
.bnb-calendar-room small {
font-weight: normal;
color: #646970;
}
/* Calendar Legend */
.bnb-calendar-legend {
display: flex;
gap: 20px;
padding: 15px 20px;
border-top: 1px solid #c3c4c7;
background: #f6f7f7;
}
.bnb-calendar-legend-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
}
.bnb-calendar-legend-color {
width: 16px;
height: 16px;
border-radius: 3px;
border: 1px solid rgba(0, 0, 0, 0.1);
}
.bnb-calendar-legend-color.available {
background: #d4edda;
}
.bnb-calendar-legend-color.booked {
background: #d63638;
}
.bnb-calendar-legend-color.pending {
background: #dba617;
}
.bnb-calendar-legend-color.confirmed {
background: #00a32a;
}
.bnb-calendar-legend-color.checked-in {
background: #72aee6;
}
/* Tooltip for booking details */
.bnb-calendar-day[title] {
cursor: help;
}
/* No Rooms Message */
.bnb-no-rooms {
padding: 40px;
text-align: center;
color: #646970;
}
.bnb-no-rooms .dashicons {
font-size: 48px;
width: 48px;
height: 48px;
margin-bottom: 15px;
}
/* Calendar Single Room View */
.bnb-calendar-single-room .bnb-calendar-day {
font-size: 12px;
}
.bnb-calendar-single-room .bnb-calendar-day.booked .guest-name {
font-size: 10px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Responsive */
@media screen and (max-width: 782px) {
.bnb-calendar-filters {
flex-direction: column;
}
.bnb-calendar-filters select {
width: 100%;
}
.bnb-calendar-header {
flex-direction: column;
gap: 10px;
}
}