.plocice-calculator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.plocice-header {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.room-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.room-type-btn {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.room-type-btn.active {
    border-color: #007cba;
    background: #007cba;
    color: white;
}

.room-type-btn:hover {
    border-color: #005a87;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.drawing-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007cba;
    outline: none;
}

.dimensions-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wall-inputs,
.opening-inputs {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wall-inputs h4,
.opening-inputs h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.add-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 5px;
}

.canvas-container {
    width: 100%;
    height: 400px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    position: relative;
    overflow: hidden;
}

#roomCanvas {
    width: 100%;
    height: 100%;
}

.step-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.results-section {
    grid-column: 1 / -1;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.calculate-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
}

.calculate-btn:hover {
    background: #005a87;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.result-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.result-value {
    font-size: 18px;
    font-weight: bold;
    color: #007cba;
}

.cost-breakdown {
    margin-top: 30px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cost-total {
    font-weight: bold;
    font-size: 18px;
    color: #28a745;
    border-top: 2px solid #ddd;
    padding-top: 15px;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }

    .dimensions-input {
        grid-template-columns: 1fr;
    }
}

/* Download buttons */
.download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #218838;
}

.download-btn.pdf {
    background: #dc3545;
}

.download-btn.pdf:hover {
    background: #c82333;
}

/* Wall with openings */
.wall-with-openings {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #dee2e6;
}

.wall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.has-opening-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #007cba;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Stairs input improvement */
.stairs-batch-input {
    background: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.stairs-visual {
    position: relative;
    margin-top: 20px;
}

.step-visual {
    position: absolute;
    background: #007cba;
    border: 1px solid #005a87;
}

.step-riser {
    background: #005a87;
}

/* Terrace visual */
.terrace-visual {
    position: relative;
    border: 2px solid #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* Kitchen visual */
.kitchen-visual {
    position: relative;
    border: 2px solid #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.kitchen-appliance {
    position: absolute;
    background: #6c757d;
    border: 1px solid #495057;
}

/* Alert box */
.alert-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
}

/* PDF styles */
.pdf-logo {
    max-width: 150px;
    height: auto;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #007cba;
}

.pdf-company-info {
    text-align: right;
    font-size: 12px;
    line-height: 1.4;
}

.pdf-title {
    text-align: center;
    margin: 20px 0;
    color: #007cba;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pdf-table th,
.pdf-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.pdf-table th {
    background-color: #f8f9fa;
}

.pdf-total {
    font-weight: bold;
    font-size: 18px;
    color: #28a745;
}

/* Dodaj ove stilove na kraj fajla */

.description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    font-style: italic;
}

.wall-with-openings {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.wall-with-openings:hover {
    border-color: #007cba;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.has-opening-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #007cba;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.opening-details {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #dee2e6;
}

.stairs-batch-input {
    background: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .wall-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .has-opening-toggle {
        align-self: flex-end;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}