/* DeckHub - MARGSOFT Technologies Custom Styles */
html,
body {
    height: 100%;
}

body {
    display: table;
    border-collapse: collapse;
    width: 100%;
}

:root {
    /* MARGSOFT Color Palette */
    --primary-blue: #1E3A8A;
    --margsoft-green: #059669;
    --background-light: #F8FAFC;
    --background-dark: #1E293B;
    --text-dark: #0F172A;
    --text-light: #F1F5F9;
    --accent-blue: #3B82F6;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[tooltip] {
    position: relative;
    cursor: pointer;
}

[tooltip]:before,
[tooltip]:after {
    position: absolute;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

[tooltip]:before {
    content: "";
    border: 5px solid transparent;
    border-top: 5px solid #2c2b2b;
    transform: translate(-50%, calc(-100% - 17px));
}

[tooltip]:after {
    content: attr(tooltip);
    background: #2c2b2b;
    padding: 5px 14px;
    border-radius: 5px;
    color: #F9F9F9;
    font-size: 10px;
    line-height: normal;
    white-space: nowrap;
    transform: translate(-50%, calc(-100% - 24px));
}

[tooltip]:hover:before,
[tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
}

[tooltip]:hover:before {
    transform: translate(-47%, calc(-100% - -2px));
}

[tooltip]:hover:after {
    transform: translate(-47%, calc(-100% - 7px));
}

/* Global Styles */
body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.dark-mode {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.dark-mode .card {
    background-color: #334155;
    border-color: #475569;
}

.dark-mode .navbar {
    background-color: var(--background-dark) !important;
}

/* MARGSOFT Branding */
.margsoft-primary {
    background-color: var(--primary-blue);
    color: white;
}



.text-margsoft-blue {
    color: var(--primary-blue);
}

.text-margsoft-green {
    color: var(--margsoft-green);
}

/* Header Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: var(--card-shadow);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
}

.hero-content h1 span {
    display: block;
    font-size: 1.5rem;
    padding-top: 10px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.9;

}


/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--primary-blue);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 1rem;
}

/* Button Styles */
.btn-margsoft-primary {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 4px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 40px;
}

.btn-margsoft-primary i {
    margin-left: 6px;
    font-size: 24px;
    position: relative;
    top: 2px;
}

.btn-margsoft-primary:hover {
    color: #ffffff;
    background: #3778e8;
}


.btn-margsoft-green {
    background: linear-gradient(135deg, var(--margsoft-green), #10B981);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-margsoft-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
    color: white;
}

/* File Grid Styles */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.file-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.file-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.2);
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    color: inherit;
    background-color: inherit;
    border-color: inherit;
}

.file-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.file-info {
    padding: 1rem;
}

.file-title {
    font-weight: 600;
    margin-bottom: 0px;
    color: var(--text-dark);
    font-size: 0.8rem;
    line-height: normal;
    width: 83%;
}

.file-meta {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 0px;
    float: left;
    width: 70%;
}

.file-meta-right {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 0.5rem;
    float: right;
    width: 30%;
    text-align: right;
    margin-top: -20px;
    position: relative;
}

.file-meta-right i {
    font-size: 20px;
    color: #f87c14;
    display: block;
}


.file-meta-right b {
    font-size: 10px;
    color: #6B7280;
    display: block;
}

.tag-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 400;
    margin-bottom: 0px;
    text-transform: capitalize;
}

.select2-results__option--selectable {
    cursor: pointer;
    font-size: 12px;
}

.department-name.department-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 400;
    color: white;
    margin-bottom: 0px;
}

.text-downloads {
    font-size: 12px;
    color: #595c5f;
    display: none;
}

.calendar-text {
    display: block;
    font-size: 0.6rem;
    color: #737373;
    position: relative;
    top: 3px;
}

.calendar-text i {
    color: #FF9800;
}

.cardbtn {
    background-color: transparent;
    color: #666666;
    font-size: 12px;
    border: 1px solid #ffffff;
    border-radius: 3px;
    position: relative;
}

.cardbtn:hover {
    color: #333;
    text-decoration: underline;
    border: 1px solid #ccc;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 12px;
}

.h4,
h4 {
    font-size: 1rem;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-light) 0%, #E2E8F0 100%);
}

.login-card {
    max-width: 450px;
    width: 100%;
    margin: 2rem;
}

.login-card .btn-margsoft-primary {
    justify-content: center;
}

.login-card .btn-outline-secondary {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 7px 18px;
}

.login-card p {
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: 0.5rem;
}

.login-card .text-margsoft-blue {
    font-size: 1.5rem;
    color: #000;
}

.login-card .form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
}

.login-card .input-group-text {
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #336fda;
    text-align: center;
    white-space: nowrap;
    background-color: transparent;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

/* Dashboard Styles */
.dashboard-header {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0rem;
}

.dashboard-header p {
    font-size: 12px;
    line-height: normal;
}

.dashboard-header .text-margsoft-blue {
    color: #000;
    font-size: 1.2rem;
    margin-bottom: .2rem !important;
    padding: 0px;
}

.stats-card {
    text-align: center;
    padding: 6px;
    background: var(--primary-blue);
    color: white;
    border-radius: 5px;
    margin-bottom: 0rem;
    display: flex;
    align-items: center;
    height: 37px;
    width: 100%;
    justify-content: center;
}

.margsoft-green {
    background: var(--margsoft-green);
    color: white;
}

.stats-number {
    font-size: 14px;
    margin-bottom: 0px;
    margin-right: 5px;
    font-weight: 500;
}

.stats-label {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
}

.deckhub-logo {
    margin-right: 15px;
    border-right: 1px solid #ccc;
    padding-right: 15px;
}

.deckhub-logo span {
    display: block;
    line-height: 1;
    font-size: 1.7rem;
    color: #1d3b7e;
}

.deckhub-logo b {
    display: block;
    font-size: 10px;
    line-height: 1;
}

.navbar-brand img {
    height: 52px;
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed var(--accent-blue);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(59, 130, 246, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
}

.upload-area.dragover {
    border-color: var(--margsoft-green);
    background: rgba(5, 150, 105, 0.1);
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 0px 0px 10px 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-top: 0px;
}

.filter-bar .form-control,
.filter-bar .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.top-right>.btn-danger {}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
    display: none;
}

.dark-mode-toggle:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .filter-bar {
        padding: 1rem;
    }

    .stats-card {
        padding: 1.5rem;
    }

    .stats-number {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 12px;
    position: relative;
    right: 0px;
    left: 0px;
    bottom: 0px;
    display: table-row;
    height: 50px;
    line-height: 53px;
}

/* Utility Classes */
.text-gradient {}

.border-gradient {
    border: 2px solid;
    border-image: var(--primary-blue) 1;
}

.features-grid {
    padding: 5rem 0rem;
}

.features-grid h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.features-grid p {
    font-size: 1rem;
    color: #737373;
    margin-top: 0.5rem;
}

.features-grid h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.features-grid .text-margsoft-blue {
    background-color: #dde6ff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 1rem;
    margin: auto;
    font-size: 2rem;
}

.features-grid .text-margsoft-green {
    background-color: #cbefe4;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 1rem;
    margin: auto;
    font-size: 2rem;
}

.features-grid .text-margsoft-skyblue {
    background-color: #c9e7ff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 1rem;
    margin: auto;
    font-size: 2rem;
    color: #2196F3;
}

.main-container {
    min-height: 100vh;
    display: inline-block;
    width: 100%;
}

.p-8 {
    padding: 2.5rem;
}


.business-excellence {
    padding: 5rem 0rem;
    background-color: #f5f5f5;
}

.business-excellence h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.business-excellence p {
    font-size: 1rem;
    color: #737373;
    margin-top: 0.5rem;
}

.business-excellence h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}


.card-business {
    background-color: #e1e8ef;
    padding: 3rem;
    border-radius: 15px;
}

.card-business h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-business p {
    font-size: 1rem;
    color: #4B5563;
    margin-top: 0.5rem;
}

.card-business .btn-margsoft-primary {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 4px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 40px;
    justify-content: center;
}

.card-business .btn-margsoft-primary i {
    margin-left: 6px;
    font-size: 24px;
    position: relative;
    top: 2px;
}

.card-business .btn-margsoft-primary:hover {
    color: white;
}


.business-excellence .text-margsoft-blue {
    font-size: 11px;
    width: 22px;
    text-align: center;
}

.business-excellence .text-margsoft-green {
    font-size: 11px;
    width: 22px;
    text-align: center;
}

.business-excellence .card-business-left {}

.business-excellence .card-business-left h5 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.business-excellence .card-business-left h6 {
    font-weight: 700;
}

.business-excellence .card-business-left p {
    font-size: 14px;
    margin: 0px;
}

/* Success/Error Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--margsoft-green);
    border-left: 4px solid var(--margsoft-green);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border-left: 4px solid #DC2626;
}

.file-thumbnail {
    display: block;
    align-items: center;
    padding: 0px;
    border-radius: 4px;
    position: relative;
}

.file-label {
    position: absolute;
    top: 6px;
    background: #2c2c2c;
    margin: auto;
    right: 10px;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

.file-icon {
    height: 100px;
    position: absolute;
    right: 0px;
    left: 0px;
    bottom: 0px;
    top: 0px;
    margin: auto;
}

#uploadForm .form-control,
#uploadForm .form-select {
    font-size: 14px;
    padding: 10px 10px;
    border-width: 1px;
}

.btn-deleted-files {
    background-color: #F44336;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    border: 0;
    padding: 0px 10px;
    display: flex;
    align-items: center;
    height: 37px;
    font-weight: 500;
    justify-content: center;
}

.btn-deleted-files:hover {
    background-color: #de3529;
    color: #fff;
}

.btn-deleted-files:first-child:active {
    background-color: #de3529;
    color: #fff;
    border-color: inherit;
}

.select2-container--default .select2-selection--single {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: normal;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    background-repeat: no-repeat;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: auto;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 6px;
    right: 1px;
    width: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 23px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 23px;
    margin-right: 22px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #e2e8f0;
}

.select2-container .select2-selection--single {
    height: 38px;
    padding: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: normal;
    font-size: 0.8rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 30px;
}

.text-max {
    font-size: 12px;
    margin-left: 3px;
    line-height: normal;
    display: block;
    color: #8d8989;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    
    position: relative;
    top: -5px;
}

.select2-results__option {
    font-size: 14px;
}

.carousel-dark .carousel-caption {
    color: #ffffff;
}

.carousel-caption {
    bottom: auto;
    top: 0px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel-dark {}

.carousel-dark .carousel-indicators [data-bs-target] {
    background-color: #ffffff;
}

.carousel-dark .carousel-control-next-icon,
.carousel-dark .carousel-control-prev-icon {
    filter: invert(1) grayscale(-120);
}

.carousel-dark .carousel-control-next-icon,
.carousel-dark .carousel-control-prev-icon {
    background-color: rgb(87 87 87 / 74%);
    border-radius: 100px;
    padding: 1px;
    background-size: 20px;
    width: 3rem;
    height: 3rem;
    filter: invert(0);
}

.super-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ffffff;
    border: 1px solid rgb(255 255 255);
    border-radius: 10px;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
}

.super-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #b3d46d, #c0512a, #f2c918);
    animation: rotate 4s linear infinite;
    z-index: -2;
}

.super-button::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #ffffff;
    border-radius: inherit;
    z-index: -1;
}

.super-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}

.super-button:hover .arrow {
    transform: translateX(6px);
}

.arrow {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease-in-out;
    color: #000000;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.back-and-log{
    margin-left: 5px;
}


@media only screen and (max-width: 1024px) {
    .footer {
        position: relative;
        display: block;
        height: auto;
        line-height: 20px;
    }

    .super-button {
        padding: 8px 18px;
        border-radius: 5px;
        letter-spacing: normal;
        font-size: 14px;
    }

    .arrow {
        width: 15px;
        height: 15px;
    }

    .carousel-dark .carousel-control-next-icon,
    .carousel-dark .carousel-control-prev-icon {
        background-size: 10px;
        width: 2rem;
        height: 2rem;
    }

    .carousel-dark .carousel-inner .carousel-item img {
        min-height: 390px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {

        font-size: 0.8rem;
    }

    .select2-container .select2-selection--single {
        height: auto;
        padding: 12px 10px;
    }

    .select2-container--default .select2-selection--single .select2-selection__clear {
        height: 8px;
        top: 0px;
    }

    .btn-margsoft-green {
        padding: 0.5rem 1rem;
        border-radius: 5px;
        font-size: 10px;
        white-space: nowrap;
    }

    .btn-margsoft-primary {
        padding: 4px 8px;
        border-radius: 5px;
        font-size: 12px;
        height: 30px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-content h1 span {
        display: block;
        font-size: 1rem;
        padding-top: 5px;
    }


    .carousel-caption {
        top: 0%;
    }

    .features-grid h2 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0rem;
    }

    .features-grid {
        padding: 3rem 0rem;
    }

    .p-8 {
        padding: 1rem;
    }

    .features-grid h5 {
        font-size: 1.1rem;
        margin-bottom: 0rem;
    }

    .features-grid p {
        font-size: 0.8rem;

    }

    .business-excellence {
        padding: 3rem 0rem;
    }

    .business-excellence h2 {
        font-size: 1.5rem;
        margin-bottom: 0rem;
    }

    .business-excellence p {
        font-size: 0.8rem;
    }

    .business-excellence .card-business-left h5 {
        margin-bottom: 2rem;
        font-size: 1.3rem;
    }

    .card-business {
        padding: 1rem;
        margin-top: 2rem;
    }

    .card-business h3 {
        font-size: 1rem;
        margin-bottom: 0rem;
    }

    .login-container {
        background: #fff;
    }

    .login-card {
        max-width: 300px;
        width: 100%;
        margin: 0px;
    }

    .login-card .p-5 {
        padding: 2rem !important;
    }

    .login-card .text-margsoft-blue {
        font-size: 1.3rem;
    }

    .login-card p {
        font-size: 12px;
    }

    .back-tohome {
        font-size: 12px;
        padding: 4px;
    }

    .login-card .form-control {
        font-size: 0.8rem;
        border: 1px solid #dee2e6;
        line-height: normal;
    }

    .login-card .input-group-text {
        font-size: 12px;
    }

    .top-right>.btn-danger {
        font-size: 10px;
        display: flex;
        align-items: center;
    }

    .btn-margsoft-green {
        padding: 7px;
        font-size: 10px;
    }

    .top-right > span {
        font-size: 10px;
        color: #666;
    }

    .top-right span strong {
        display: block
    }

    .dashboard-header .text-margsoft-blue {

        font-size: 1rem;
    }

    .stats-card {
        padding: 5px;
        height: auto;
        line-height: normal;
    }

    .stats-number {
        font-size: 12px;
    }

    .dashboard-header p {
        margin-bottom: 10px !important;
    }

    .btn-deleted-files {
        font-size: 12px;
        padding: 5px;
        height: auto;
        justify-content: center;
        line-height: normal;
    }

    .file-meta-right b {
        font-size: 8px;
    }

    .refresh-btn {
        white-space: nowrap;
        font-size: 14px;
    }

    .stats-label {
        font-size: 12px;
    }

    .back-btn {
        font-size: 12px;
        padding: 3px 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .card-header h4 {
        font-size: 13px;
    }

    .upload-area h5 {
        font-size: 18px;
    }

    .upload-area p {
        font-size: 13px;
    }

    .btn-margsoft-primary i {
        margin-left: 0px;
        font-size: 14px;
        position: relative;
        top: 0px;
    }


}


@media only screen and (max-width: 568px) {
    .footer {
        position: relative;
        display: block;
        height: auto;
        line-height: 20px;
    }

    .super-button {
        padding: 8px 18px;
        border-radius: 5px;
        letter-spacing: normal;
        font-size: 14px;
    }

    .arrow {
        width: 15px;
        height: 15px;
    }

    .carousel-dark .carousel-control-next-icon,
    .carousel-dark .carousel-control-prev-icon {
        background-size: 10px;
        width: 2rem;
        height: 2rem;
    }

    .carousel-dark .carousel-inner .carousel-item img {
        min-height: 390px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {

        font-size: 0.8rem;
    }

    .select2-container .select2-selection--single {
        height: auto;
        padding: 12px 10px;
    }

    .select2-container--default .select2-selection--single .select2-selection__clear {
        height: 8px;
        top: 0px;
    }

    .btn-margsoft-green {
        padding: 0.5rem 1rem;
        border-radius: 5px;
        font-size: 10px;
        white-space: nowrap;
    }

    .btn-margsoft-primary {
        padding: 4px 8px;
        border-radius: 5px;
        font-size: 12px;
        height: 30px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-content h1 span {
        display: block;
        font-size: 1rem;
        padding-top: 5px;
    }


    .carousel-caption {
        top: 0%;
    }

    .features-grid h2 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0rem;
    }

    .features-grid {
        padding: 3rem 0rem;
    }

    .p-8 {
        padding: 1rem;
    }

    .features-grid h5 {
        font-size: 1.1rem;
        margin-bottom: 0rem;
    }

    .features-grid p {
        font-size: 0.8rem;

    }

    .business-excellence {
        padding: 3rem 0rem;
    }

    .business-excellence h2 {
        font-size: 1.5rem;
        margin-bottom: 0rem;
    }

    .business-excellence p {
        font-size: 0.8rem;
    }

    .business-excellence .card-business-left h5 {
        margin-bottom: 2rem;
        font-size: 1.3rem;
    }

    .card-business {
        padding: 1rem;
        margin-top: 2rem;
    }

    .card-business h3 {
        font-size: 1rem;
        margin-bottom: 0rem;
    }

    .login-container {
        background: #fff;
    }

    .login-card {
        max-width: 300px;
        width: 100%;
        margin: 0px;
    }

    .login-card .p-5 {
        padding: 2rem !important;
    }

    .login-card .text-margsoft-blue {
        font-size: 1.3rem;
    }

    .login-card p {
        font-size: 12px;
    }

    .back-tohome {
        font-size: 12px;
        padding: 4px;
    }

    .login-card .form-control {
        font-size: 0.8rem;
        border: 1px solid #dee2e6;
        line-height: normal;
    }

    .login-card .input-group-text {
        font-size: 12px;
    }

.top-right>.btn-danger {
    display: flex;
    align-items: center;
    font-size: 8px;
    padding: 3px 3px;
    border-radius: 3px;
            width: 18px;
        height: 18px;
        justify-content: center;
}

 .btn-margsoft-green {
    padding: 3px;
    font-size: 8px;
    border-radius: 3px;
            width: 18px;
        height: 18px;
}

   .top-right > span {
    font-size: 8px;
    color: #666;
       border-radius: 3px; 
}

    .top-right span strong {
        display: block
    }

    .dashboard-header .text-margsoft-blue {

        font-size: 1rem;
    }

    .stats-card {
        padding: 5px;
        height: auto;
        line-height: normal;
    }

    .stats-number {
        font-size: 12px;
    }

    .dashboard-header p {
        margin-bottom: 10px !important;
    }

    .btn-deleted-files {
        font-size: 12px;
        padding: 5px;
        height: auto;
        justify-content: center;
        line-height: normal;
    }

    .file-meta-right b {
        font-size: 8px;
    }

    .refresh-btn {
        white-space: nowrap;
        font-size: 14px;
    }

    .stats-label {
        font-size: 12px;
    }

   .back-btn {
    font-size: 10px;
    padding: 3px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

    .card-header h4 {
        font-size: 13px;
    }

    .upload-area h5 {
        font-size: 18px;
    }

    .upload-area p {
        font-size: 13px;
    }

    .btn-margsoft-primary i {
        margin-left: 0px;
        font-size: 14px;
        position: relative;
        top: 0px;
    }

 .navbar-brand {
        font-weight: 700;
        font-size: 1.2rem;
        margin: 0px;
        padding: 0px;
    }

    .deckhub-logo span {
        font-size: 1.4rem;
    }

    .deckhub-logo b {
        font-size: 8px;
    }

    .navbar-brand img {
        height: 33px;
    }

    .deckhub-logo {
        margin-right: 8px;
        padding-right: 8px;
    }

    .btn-margsoft-primary {
        font-size: 10px;
    }

    .navbar-brand {
        font-weight: 700;
        font-size: 1.2rem;
        margin: 0px;
        padding: 0px;
    }

    .deckhub-logo span {
        font-size: 1.4rem;
    }

    .deckhub-logo b {
        font-size: 8px;
    }

   .navbar-brand img {
    height: 28px;
}

    .deckhub-logo {
        margin-right: 8px;
        padding-right: 8px;
    }

    .btn-margsoft-primary {
        font-size: 10px;
    }
    .back-and-log{
        display: none;
    }
}