/* VMS Theme Additional Styles */

/* 前端页面样式 */
.vms-frontend-page {
    padding: 20px 0;
}

.page-title {
    color: #546E7A;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

/* 搜索框 */
.vms-search-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vms-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vms-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

/* 车辆卡片 */
.vms-vehicle-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vms-vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.vehicle-plate {
    margin: 0;
    font-size: 20px;
    color: #FF9800;
    font-weight: 600;
}

.vehicle-model {
    font-size: 14px;
    color: #757575;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
}

.vehicle-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

.vehicle-info strong {
    color: #333;
}

.vehicle-model {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    background: #E3F2FD;
    color: #1976D2;
}

.vehicle-status,
.contract-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-inactive {
    background: #FFEBEE;
    color: #C62828;
}

.status-completed {
    background: #E3F2FD;
    color: #1976D2;
}

.status-cancelled {
    background: #FFF3E0;
    color: #F57C00;
}

.vehicle-info p,
.contact-info p,
.document-info p,
.contract-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.vehicle-info strong,
.contact-info strong,
.document-info strong,
.contract-info strong {
    color: #546E7A;
    margin-right: 5px;
}

.vehicle-notes,
.contact-notes,
.document-notes,
.contract-notes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
}

.expiring-soon {
    color: #FF9800;
    font-weight: 600;
}

.expiry-badge {
    background: #FF9800;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

/* 联系人卡片 */
.vms-contact-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.vms-contact-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.contact-name {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #546E7A;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.contact-info a {
    color: #FF9800;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 文档卡片 */
.vms-document-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.vms-document-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.document-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.document-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #546E7A;
    font-weight: 600;
}

.document-info {
    text-align: left;
    margin-bottom: 15px;
}

.document-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* 合同卡片 */
.vms-contract-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.vms-contract-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.contract-number {
    margin: 0;
    font-size: 18px;
    color: #546E7A;
    font-weight: 600;
}

/* 无数据提示 */
.vms-no-items {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vms-no-items p {
    font-size: 16px;
    color: #999;
}

/* 分页 */
.vms-pagination {
    margin-top: 30px;
    text-align: center;
}

.vms-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #546E7A;
    transition: all 0.2s;
}

.vms-pagination .page-numbers:hover,
.vms-pagination .page-numbers.current {
    background: #546E7A;
    color: white;
    border-color: #546E7A;
}

/* Cards */
.vms-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.vms-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #FF9800;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.vms-btn:hover {
    background: #F57C00;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Grid Layout */
.vms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Responsive Tables */
.vms-table-responsive {
    overflow-x: auto;
}

/* Login Page Customization */
.login h1 a {
    background-size: contain;
    width: 100%;
}

/* User Menu */

.user-menu {

    display: flex;

    gap: 1rem;

    align-items: center;

}



.user-menu a {

    color: white;

    padding: 0.5rem 1rem;

    border-radius: 4px;

    transition: background 0.2s;

}



.user-menu a:hover {

    background: rgba(255, 255, 255, 0.1);

}

/* Dashboard Link Highlight */
.dashboard-link {
    background: #FF9800 !important;
    font-weight: 600;
    padding: 0.6rem 1.2rem !important;
    border-radius: 4px;
}

.dashboard-link:hover {
    background: #F57C00 !important;
}

/* Search Results */
.vms-search-results {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vms-search-result-item {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.vms-search-result-item:last-child {
    border-bottom: none;
}

.vms-search-result-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.vms-search-result-item h3 a {
    color: #546E7A;
    text-decoration: none;
}

.vms-search-result-item h3 a:hover {
    color: #FF9800;
}

.search-result-excerpt {
    color: #666;
    margin-bottom: 10px;
}

.search-result-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.result-type {
    background: #E3F2FD;
    color: #1976D2;
    padding: 2px 8px;
    border-radius: 12px;
}

.result-date {
    display: flex;
    align-items: center;
}

/* Login Form */
.vms-login-notice {
    background: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 50px auto;
}

.vms-login-notice h2 {
    color: #546E7A;
    margin-bottom: 20px;
}

.vms-login-notice p {
    color: #666;
    margin-bottom: 30px;
}

.vms-login-form {
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 420px;
    margin: 50px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vms-login-form h2 {
    color: #546E7A;
    margin-bottom: 10px;
    text-align: center;
    font-size: 24px;
}

.vms-login-form .login-desc {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.vms-login-form .form-group {
    margin-bottom: 20px;
}

.vms-login-form label {
    display: block;
    margin-bottom: 8px;
    color: #546E7A;
    font-weight: 600;
    font-size: 14px;
}

.vms-login-form input[type="text"],
.vms-login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.vms-login-form input[type="text"]:focus,
.vms-login-form input[type="password"]:focus {
    outline: none;
    border-color: #FF9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.vms-login-form .login-submit {
    width: 100%;
    padding: 14px;
    background: #FF9800;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.vms-login-form .login-submit:hover {
    background: #F57C00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 124, 0, 0.3);
}

.vms-login-error {
    background: #FFEBEE;
    color: #C62828;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #C62828;
    font-size: 14px;
}

/* Entry Content */
.entry-content {
    margin-top: 2rem;
}

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.entry-title {
    color: #546E7A;
}

/* Frontend Dashboard Styles */
.vms-frontend-dashboard .page-title {
    font-size: 28px;
    color: #546E7A;
    margin-bottom: 30px;
    text-align: center;
}

.vms-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.vms-stat-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.vms-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.vms-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.vms-stat-content h3 {
    font-size: 32px;
    color: #546E7A;
    margin: 0;
    font-weight: 700;
}

.vms-stat-content p {
    margin: 5px 0 0;
    color: #757575;
    font-size: 14px;
}

.vms-reminders-section,
.vms-expiring-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vms-reminders-section h2,
.vms-expiring-section h2 {
    color: #546E7A;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #FF9800;
    padding-bottom: 10px;
}

.vms-reminders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vms-reminder-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #FFF3E0;
    border-radius: 6px;
    border-left: 4px solid #FF9800;
}

.vms-reminder-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FF9800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.vms-reminder-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.vms-reminder-content {
    flex: 1;
}

.vms-reminder-message {

    margin: 0 0 5px;

    color: #546E7A;

    font-size: 18px;

    font-weight: 500;

}

.vms-reminder-message strong {

    color: #FF9800;

    font-weight: 600;

}



.vms-reminder-message a {

    color: inherit;

    text-decoration: none;

}



.vms-reminder-message a:hover {

    text-decoration: underline;

    color: #FF9800;

}

.vms-reminder-date {
    margin: 0;
    color: #757575;
    font-size: 15px;
}

.vms-no-reminders {
    text-align: center;
    color: #9E9E9E;
    padding: 30px;
    font-size: 15px;
}

.vms-vehicle-card,
.vms-contract-card {
    position: relative;
}

.vehicle-header,
.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vehicle-plate,
.contract-number {
    margin: 0;
    color: #546E7A;
    font-size: 18px;
}

.expiry-badge {
    background: #FF9800;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.vehicle-info,
.contract-info {
    color: #546E7A;
}

.vehicle-info p,
.contract-info p {
    margin: 8px 0;
    font-size: 14px;
}

.expiring-soon {
    color: #FF9800;
    font-weight: 600;
}

.vms-quick-links {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vms-quick-links h2 {
    color: #546E7A;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.vms-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.vms-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #546E7A, #455A64);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
}

.vms-quick-link:hover {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.vms-quick-link .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-branding {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-menu {
        width: 100%;
        justify-content: center;
    }
    
    .vms-grid {
        grid-template-columns: 1fr;
    }
    
    .vms-stats-row {
        grid-template-columns: 1fr;
    }
    
    .vms-quick-links-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .vms-search-form {
        flex-direction: column;
    }
    
    .vms-search-input,
    .vms-btn {
        width: 100%;
    }
    
    .vehicle-header,
    .contract-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .vehicle-plate,
    .contract-number,
    .contact-name {
        font-size: 16px;
    }
    
    /* Make cards more touch-friendly */
    .vms-card {
        padding: 15px;
    }
    
    .vms-stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .vms-reminder-item {
        flex-direction: column;
    }
    
    .vms-login-form {
        padding: 25px;
        margin: 30px 10px;
    }
}

/* Detail Page Styles */

.vms-detail-page .page-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

}



.vms-detail-card {

    background: white;

    border-radius: 8px;

    padding: 30px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

}



.vehicle-plate-title,

.contact-name-title,

.contract-number-title {

    color: #FF9800;

    font-size: 28px;

    margin-bottom: 25px;

    padding-bottom: 15px;

    border-bottom: 2px solid #FF9800;

    text-align: center;

}



.detail-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-bottom: 25px;

}



.detail-item {

    padding: 15px;

    background: #f5f5f5;

    border-radius: 6px;

    border-left: 3px solid #FF9800;

}



.detail-item.full-width {

    grid-column: 1 / -1;

}



.detail-item label {

    display: block;

    font-weight: 600;

    color: #546E7A;

    margin-bottom: 5px;

    font-size: 14px;

}



.detail-item span {

    color: #333;

    font-size: 15px;

}



.detail-item a {

    color: #FF9800;

    text-decoration: none;

}



.detail-item a:hover {

    text-decoration: underline;

}



.detail-section {

    margin-top: 25px;

    padding: 20px;

    background: #f5f5f5;

    border-radius: 6px;

}



.detail-section h3 {

    color: #546E7A;

    margin: 0 0 15px 0;

    font-size: 18px;

    border-bottom: 2px solid #FF9800;

    padding-bottom: 8px;

}



.detail-section p {

    margin: 0;

    color: #333;

    line-height: 1.6;

}



/* Contract Detail Specific Styles */

.vms-contract-detail-page .page-title {

    color: #546E7A;

    font-size: 28px;

    margin-bottom: 30px;

    padding-bottom: 15px;

    border-bottom: 2px solid #e0e0e0;

}



.vms-contract-detail .vms-detail-section {

    background: white;

    border-radius: 8px;

    padding: 25px;

    margin-bottom: 25px;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}



.vms-contract-detail .vms-detail-section h2 {

    color: #546E7A;

    margin-top: 0;

    margin-bottom: 20px;

    padding-bottom: 12px;

    border-bottom: 2px solid #FF9800;

    font-size: 20px;

}



.vms-contract-detail .vms-detail-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-bottom: 20px;

}



.vms-contract-detail .vms-detail-item {

    padding: 15px;

    background: #f9f9f9;

    border-radius: 6px;

    border-left: 3px solid #FF9800;

}



.vms-contract-detail .vms-detail-item strong {

    color: #546E7A;

    display: block;

    margin-bottom: 5px;

    font-size: 14px;

}



.vms-contract-detail .contract-status {

    padding: 4px 12px;

    border-radius: 12px;

    font-size: 12px;

    font-weight: 600;

}



.vms-contract-detail .vms-relations-section {

    margin-top: 30px;

}



.vms-contract-detail .vms-relation-group {

    margin-bottom: 25px;

}



.vms-contract-detail .vms-relation-group h3 {

    color: #546E7A;

    margin: 0 0 15px 0;

    padding-bottom: 8px;

    border-bottom: 1px solid #e0e0e0;

    font-size: 16px;

}



.vms-contract-detail .vms-relation-list {

    margin: 0;

    padding: 0;

    list-style: none;

}



.vms-contract-detail .vms-relation-item {

    padding: 10px 15px;

    margin-bottom: 8px;

    background: #f5f5f5;

    border-radius: 4px;

    border-left: 3px solid #546E7A;

}



.vms-contract-detail .vms-detail-actions {

    text-align: center;

    margin-top: 30px;

}



.vms-contract-detail .vms-btn {

    display: inline-block;

    padding: 12px 30px;

    background: #546E7A;

    color: white;

    border-radius: 4px;

    text-decoration: none;

    transition: all 0.2s;

    font-weight: 600;

}



.vms-contract-detail .vms-btn:hover {

    background: #455A64;

    color: white;

    transform: translateY(-1px);

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}


@media (max-width: 768px) {
    .vms-detail-page .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .vms-detail-card {
        padding: 20px 15px;
    }
    
    .vehicle-plate-title,
    .contact-name-title {
        font-size: 22px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        padding: 12px;
    }
}

/* 添加的样式 */
.vms-relation-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #546E7A;
}

.vms-relation-item:last-child {
    margin-bottom: 0;
}

.vms-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #757575;
}

/* 搜索结果提示 */
.vms-search-result-info {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #0066cc;
}

.vms-search-result-info p {
    margin: 0;
    line-height: 1.4;
}

/* 暂无结果提示 */
.vms-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.vms-no-results p {
    margin: 10px 0;
    font-size: 16px;
}
