/* Widget Styles */
.mps-most-visited-phones,
.mps-latest-phones {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mps-sidebar-phone-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mps-sidebar-phone-item:last-child {
    border-bottom: none;
}

.mps-sidebar-phone-thumb {
    width: 70px;
    margin-right: 10px;
    flex-shrink: 0;
}

.mps-thumb {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.mps-sidebar-phone-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mps-sidebar-phone-title {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.3;
}

.mps-sidebar-phone-title:hover {
    color: #0073aa;
}

.mps-sidebar-phone-spec,
.mps-sidebar-phone-date {
    font-size: 12px;
    color: #666;
}

.mps-sidebar-phone-date {
    margin-top: 2px;
}

.mps-more-phones {
    display: block;
    text-align: left;
    margin-top: 10px;
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
}

.mps-more-phones .material-icons {
    font-size: 16px;
    vertical-align: middle;
}

.mps-more-phones:hover {
    text-decoration: underline;
}

/* RTL Support */
.rtl .mps-sidebar-phone-thumb {
    margin-right: 0;
    margin-left: 10px;
}

.rtl .mps-more-phones {
    text-align: right;
}

.rtl .mps-more-phones .material-icons {
    transform: rotate(180deg);
}

/* Added margin between widgets */
.mps-latest-phones-section {
    margin-top: 30px;
}

/* Admin UI Styles */
.specs-list-input {
    font-family: inherit;
    line-height: 1.5;
    padding: 8px;
}

/* Form styling improvements */
.specs-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 15px;
    background-color: #fafafa;
    border-radius: 5px;
}

.specs-fields h3 {
    grid-column: 1 / -1;
    margin-top: 15px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    color: #0073aa;
    font-size: 16px;
}

.specs-fields h3:first-child {
    margin-top: 0;
}

.specs-field {
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.specs-field:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.specs-field label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
}

.specs-field input[type="text"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    transition: border-color 0.2s;
}

.specs-field input[type="text"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.2);
    outline: none;
}

.specs-field textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    transition: border-color 0.2s;
    min-height: 80px;
}

.specs-field textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.2);
    outline: none;
}

.specs-field .description {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

/* Special styling for full-width fields */
.specs-field.full-width {
    grid-column: 1 / -1;
}

/* Toggle button */
.enable-specs {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.enable-specs label {
    font-weight: bold;
    color: #0073aa;
}

/* Comparison list styles */
.mps-comparison-list {
    position: fixed;
    bottom: 0;
    right: 20px;
    z-index: 9999;
    width: 300px;
    background: white;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mps-comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #2271b1;
    color: white;
}

.mps-comparison-header h3 {
    margin: 0;
    font-size: 16px;
}

.mps-close-comparison {
    cursor: pointer;
    font-size: 22px;
}

.mps-compare-items {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.mps-compare-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mps-compare-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

.mps-compare-item-title {
    flex: 1;
    font-size: 14px;
}

.mps-remove-compare {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 18px;
}

.mps-compare-actions {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.mps-compare-phones, 
.mps-clear-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.mps-compare-phones {
    flex: 2;
    margin-right: 10px;
}

.mps-clear-compare {
    flex: 1;
    background-color: #cc0000;
}

.mps-compare-phones:hover {
    background-color: #135e96;
}

.mps-clear-compare:hover {
    background-color: #990000;
}

.mps-compare-phones .material-icons,
.mps-clear-compare .material-icons {
    font-size: 16px;
    margin-right: 5px;
}

.mps-comparison-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2271b1;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 9998;
}

.mps-comparison-toggle .material-icons {
    font-size: 24px;
}

.mps-compare-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #cc0000;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mps-add-to-compare {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.mps-add-to-compare:hover {
    background-color: #e0e0e0;
}

.mps-add-to-compare .material-icons {
    font-size: 16px;
    margin-right: 5px;
}

.mps-comparison-container-inline {
    margin: 15px 0;
    text-align: center;
}

/* RTL adjustments for comparison */
.rtl .mps-comparison-list {
    right: auto;
    left: 20px;
}

.rtl .mps-comparison-toggle {
    right: auto;
    left: 20px;
}

.rtl .mps-compare-item img {
    margin-right: 0;
    margin-left: 10px;
}

.rtl .mps-compare-phones {
    margin-right: 0;
    margin-left: 10px;
}

.rtl .mps-compare-phones .material-icons,
.rtl .mps-clear-compare .material-icons,
.rtl .mps-add-to-compare .material-icons {
    margin-right: 0;
    margin-left: 5px;
}

/* Empty state for comparison */
.mps-empty-comparison {
    padding: 20px;
    text-align: center;
    color: #666;
}

.mps-empty-comparison .material-icons {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 10px;
}

.mps-empty-comparison h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.mps-empty-comparison p {
    font-size: 14px;
}

/* Simple Specifications Table Design */
.phone-specs-simple {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    max-width: 600px;
}

.spec-image {
    text-align: center;
    margin-bottom: 25px;
}

.spec-image img {
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.simple-specs-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    background: linear-gradient(to bottom, #fafbfc, #fff);
}

.simple-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.simple-specs-table tr {
    transition: background-color 0.2s ease;
}

.simple-specs-table tr:nth-child(even) {
    background-color: rgba(0,0,0,0.02);
}

.simple-specs-table tr:hover {
    background-color: rgba(34,113,177,0.03);
}

.simple-specs-table td {
    padding: 12px 15px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.simple-specs-table tr:last-child td {
    border-bottom: none;
}

.simple-specs-icon {
    width: 48px;
    text-align: center;
    color: #2271b1;
    font-size: 22px;
    vertical-align: middle;
    padding-right: 0;
}

.simple-specs-icon i {
    opacity: 0.9;
}

.simple-specs-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    vertical-align: middle;
    width: 130px;
    padding-left: 5px;
}

.simple-specs-value {
    color: #444;
    font-size: 15px;
    vertical-align: middle;
    padding-right: 20px;
}

/* RTL Support */
.rtl .simple-specs-value {
    padding-right: 0;
    padding-left: 20px;
}

.rtl .simple-specs-label {
    padding-left: 0;
    padding-right: 5px;
}

@media (max-width: 600px) {
    .phone-specs-simple {
        padding: 15px;
        margin: 15px auto;
        border-radius: 10px;
    }

    .simple-specs-table td {
        padding: 10px 12px;
    }

    .simple-specs-icon {
        width: 40px;
        font-size: 20px;
    }

    .simple-specs-label, 
    .simple-specs-value {
        font-size: 14px;
    }

    .simple-specs-label {
        width: 110px;
    }

    .spec-image img {
        max-width: 180px;
    }
}

@media (max-width: 400px) {
    .spec-image img {
        max-width: 100%;
    }
}

/* Comparison button styling */
.mps-comparison-container-inline {
    margin: 15px 0;
    text-align: center;
}

.mps-add-to-compare {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.2s ease;
}

.mps-add-to-compare:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.mps-add-to-compare .material-icons {
    font-size: 18px;
    margin-right: 8px;
    color: #2271b1;
} 